forked from DeepLearningDTU/02456-deep-learning-with-PyTorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.gpu
37 lines (28 loc) · 1.06 KB
/
Dockerfile.gpu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM nvidia/cuda:8.0-devel-ubuntu16.04
ARG CONDA_DIR=/opt/conda
ARG CONDA_DOWNLOAD_SCRIPT_URL=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PATH=$CONDA_DIR/bin:$PATH
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
git \
wget \
ca-certificates \
build-essential \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget $CONDA_DOWNLOAD_SCRIPT_URL -qO /tmp/miniconda.sh && \
/bin/bash /tmp/miniconda.sh -b -p $CONDA_DIR && \
rm -rf /tmp/*
RUN export CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
RUN conda install -y numpy pyyaml mkl setuptools cmake cffi
RUN conda install -y -c pytorch magma-cuda80
RUN git clone --recursive https://github.com/pytorch/pytorch /tmp/pytorch
RUN cd /tmp/pytorch/ && python3 setup.py install
RUN pip install https://github.com/pytorch/text/archive/master.zip
RUN conda install -y torchvision -c pytorch
RUN conda install -y jupyter matplotlib scikit-learn nltk bokeh scikit-image
WORKDIR /work
CMD ["bash"]