Last active
April 19, 2020 07:52
-
-
Save ctchuang/9a117bd556745d6400c48edfca69b5d2 to your computer and use it in GitHub Desktop.
Dockerfile for Jupiter notebook and nvidia-docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See all tag variants at https://hub.docker.com/r/tensorflow/tensorflow/tags/ | |
FROM tensorflow/tensorflow:latest-gpu-py3-jupyter | |
RUN pip install keras | |
RUN pip install Pillow | |
# -m option creates a fake writable home folder for Jupyter. | |
RUN groupadd -g 1000 justin && \ | |
useradd -m -r -u 1000 -g justin justin | |
USER justin | |
VOLUME ["/src"] | |
WORKDIR /src | |
CMD ["jupyter", "notebook", "--no-browser", "--ip=0.0.0.0", \ | |
"/src/deep-learning-with-python-notebooks"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment