There is no need to tell the machine that you are the root user on Code Ocean. You are the root user by default.
You could install sudo
via apt-get and then use the command, but but this is not usually necessary.
Delete all instances of sudo
in your scripts to get them running on Code Ocean.