FROMto initialise a build stage and sets the Base Image for subsequent instructions.
RUNto execute any commands in a new layer on top of the current image and commit the results.
touch Dockerfileat the base of directory containing your notebooks.
pip install altairto install the plotting library and
jupyter labextension install @jupyterlab/vega3-extensionto add the vega3 JupyterLab extension. Notice the use of a backslash to break a line.
-t image_nameis 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.
docker image lsto see your newly tagged image.
docker runand run your app on any machine with this command: