-
Notifications
You must be signed in to change notification settings - Fork 155
/
Dockerfile
70 lines (65 loc) · 1.49 KB
/
Dockerfile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
curl \
vim \
ca-certificates \
libjpeg-dev \
libpng-dev \
wget \
vim \
libgflags-dev \
libgoogle-glog-dev \
libgtest-dev \
libiomp-dev \
libleveldb-dev \
liblmdb-dev \
libopencv-dev \
libopenmpi-dev \
libprotobuf-dev \
libsnappy-dev \
openmpi-bin \
openmpi-doc \
protobuf-compiler \
python3-dev \
python3-numpy \
python3-pip \
python3-pydot \
python3-setuptools \
python3-scipy \
ffmpeg
RUN pip3 install --no-cache-dir \
flask \
future \
graphviz \
hypothesis \
jupyter \
matplotlib \
numpy \
protobuf \
pydot \
python-nvd3 \
pyyaml \
requests \
scikit-image \
scipy \
setuptools \
six \
tornado \
Pillow \
cython \
opencv-python
## setup path
ENV PATH=/usr/local/cuda-9.0/bin:$PATH \
LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/ \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib
## install pytorch
RUN pip3 install http://download.pytorch.org/whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
RUN pip3 install torchvision
## other packages
RUN pip3 install tensorboardX
RUN pip3 install tensorflow