Skip to content

Instantly share code, notes, and snippets.

@krinkere
Last active August 22, 2019 03:15
Show Gist options
  • Save krinkere/b5b074f7d8933eda6e4d34ced6df89ad to your computer and use it in GitHub Desktop.
Save krinkere/b5b074f7d8933eda6e4d34ced6df89ad to your computer and use it in GitHub Desktop.
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 \
&& conda clean --yes --tarballs --packages --source-cache
RUN pip install --no-cache-dir tensorflow-gpu==2.0.0-alpha0
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