Skip to content

Instantly share code, notes, and snippets.

@krinkere
Created August 13, 2019 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krinkere/74bce54fe7309fe973891b2711748134 to your computer and use it in GitHub Desktop.
Save krinkere/74bce54fe7309fe973891b2711748134 to your computer and use it in GitHub Desktop.
Dockfile used to create docker image for deeplearning work *TensorFlow, Keras with Jupyter Notebook" - see https://cloud.docker.com/repository/docker/thekrinker/deeplearning
FROM nvidia/cuda:10.0-cudnn7-devel
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
RUN curl -qsSLkO \
https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-`uname -p`.sh \
&& bash Miniconda3-latest-Linux-`uname -p`.sh -b \
&& rm Miniconda3-latest-Linux-`uname -p`.sh
ENV PATH=/root/miniconda3/bin:$PATH
RUN conda install -y \
h5py \
numpy \
scipy \
scikit-learn \
pandas \
keras \
tensorflow-gpu \
&& conda clean --yes --tarballs --packages --source-cache
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
graphviz \
&& rm -rf /var/lib/apt/lists/* \
&& conda install -y \
pydot \
jupyter \
matplotlib \
seaborn \
&& conda clean --yes --tarballs --packages --source-cache
VOLUME /notebook
WORKDIR /notebook
ENV PORT_NUM 8888
EXPOSE ${PORT_NUM}
CMD jupyter notebook --port ${PORT_NUM} --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token= --NotebookApp.allow_origin='*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment