Skip to content

Instantly share code, notes, and snippets.

@ctchuang
Last active April 19, 2020 07:52
Show Gist options
  • Save ctchuang/9a117bd556745d6400c48edfca69b5d2 to your computer and use it in GitHub Desktop.
Save ctchuang/9a117bd556745d6400c48edfca69b5d2 to your computer and use it in GitHub Desktop.
Dockerfile for Jupiter notebook and nvidia-docker
# 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