/
Dockerfile
61 lines (49 loc) · 1.22 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
FROM centos:7
USER root
RUN yum -y install epel-release &&\
yum upgrade -y
RUN yum install -y \
redhat-rpm-config \
cmake \
git \
wget \
ssh \
gcc-c++ \
boost-devel \
gflags-devel \
glog-devel \
hdf5-devel \
opencv-devel \
protobuf-devel \
liblapack-dev \
libssl-dev \
protobuf-compiler \
python-devel \
python-numpy \
python-pip \
python-setuptools \
openssl \
gcc-gfortran \
pcre \
pcre-devel
RUN yum clean all
RUN export LD_LIBRARY_PATH="$HOME/.chainer/lib:$HOME/.local/lib:/usr/local/lib" && \
export LIBRARY_PATH="$LD_LIBRARY_PATH"
RUN mkdir Downloads && \
cd Downloads && \
wget https://nchc.dl.sourceforge.net/project/swig/swig/swig-3.0.12/swig-3.0.12.tar.gz && \
tar -xf swig-3.0.12.tar.gz && \
cd swig-3.0.12/ && \
./configure && \
make -j && \
make install && \
cd ../../
RUN pip install --default-timeout=10000 six \
h5py \
nose \
protobuf \
Pillow \
filelock
RUN git clone -b master_v3 https://github.com/intel/chainer && \
cd chainer && \
python setup.py install