SyntaxFix
Write A Post
Hire A Developer
Questions
This may not work for all images, but some images contain a root user already, such as in the jupyterhub/singleuser image. With that image it's simply:
USER root RUN sudo apt-get update