Created
April 17, 2018 13:24
-
-
Save crcrpar/834525f6ddf2a55ff9054f3bdc6634b6 to your computer and use it in GitHub Desktop.
Dockerfile for fastai
This file contains hidden or 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
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04 | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
cmake \ | |
git \ | |
curl \ | |
vim \ | |
ca-certificates \ | |
libjpeg-dev \ | |
libpng-dev &&\ | |
rm -rf /var/lib/apt/lists/* | |
# create fastai environment. This block is built as fastai:base | |
ADD fastai/ /src/fastai/ | |
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | |
chmod +x ~/miniconda.sh && \ | |
~/miniconda.sh -b -p /opt/conda && \ | |
rm ~/miniconda.sh && \ | |
cd /src/fastai && \ | |
/opt/conda/bin/conda update -n base conda && \ | |
/opt/conda/bin/conda env update && \ | |
mkdir -p -m 700 /root/.jupyter/ && \ | |
echo "c.NotebookApp.ip = '*'" >> /root/.jupyter/jupyter_notebook_config.py | |
WORKDIR /src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment