ENV CHOWN_HOME=yes
~/.bash_profile
:FROM
to initialise a build stage and sets the Base Image for subsequent instructions.RUN
to execute any commands in a new layer on top of the current image and commit the results. touch Dockerfile
at the base of directory containing your notebooks.pip install altair
to install the plotting library and jupyter labextension install @jupyterlab/vega3-extension
to add the vega3 JupyterLab extension. Notice the use of a backslash to break a line.-t image_name
is naming the new image. The dot (.) tells docker to use the current directory to look for a Dockerfile. Notice that new layers are created and removed as the lines of the Dockerfile are interpreted.latest
.docker image ls
to see your newly tagged image.docker run
and run your app on any machine with this command: