Skip to content

Commit ab26fa0

Browse files
ngimelsoumith
authored andcommitted
install vision in devel dockerfile, minor fixes to dockerfile (pytorch#2090)
1 parent 07fcd97 commit ab26fa0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
FROM nvidia/cuda:8.0-devel-ubuntu16.04
1+
FROM nvidia/cuda:8.0-cudnn6-devel-ubuntu16.04
22

33
RUN echo "deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list
44

5-
ENV CUDNN_VERSION 6.0.20
65
RUN apt-get update && apt-get install -y --no-install-recommends \
76
build-essential \
87
cmake \
98
git \
109
curl \
10+
vim \
1111
ca-certificates \
1212
libjpeg-dev \
13-
libpng-dev \
14-
libcudnn6=$CUDNN_VERSION-1+cuda8.0 \
15-
libcudnn6-dev=$CUDNN_VERSION-1+cuda8.0 && \
13+
libpng-dev &&\
1614
rm -rf /var/lib/apt/lists/*
1715

1816
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-4.2.12-Linux-x86_64.sh && \
@@ -32,5 +30,7 @@ RUN TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1+PTX" TORCH_NVCC_FLAGS="-Xfatbin -compr
3230
CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" \
3331
pip install -v .
3432

33+
RUN git clone https://github.com/pytorch/vision.git && cd vision && pip install -v .
34+
3535
WORKDIR /workspace
3636
RUN chmod -R a+w /workspace

0 commit comments

Comments
 (0)