forked from lmb-freiburg/demon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (27 loc) · 1.16 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
FROM nvidia/cuda:8.0-cudnn6-devel-ubuntu16.04
RUN apt update && apt install -y python3-pip \
libhdf5-dev \
libopencv-dev \
python3-tk \
cmake \
gcc-4.8 \
g++-4.8 \
cmake \
x11-apps
RUN python3 -m pip install numpy==1.12.1 \
tensorflow-gpu===1.4.0 \
pillow==2.0.0 \
pyparsing===2.1.4 \
cycler===0.10.0 \
matplotlib===2.1.2
ADD . /home/demon
RUN mkdir /home/demon/lmbspecialops/build
WORKDIR /home/demon/lmbspecialops/build
ENV CC=/usr/bin/gcc-4.8
ENV CXX=/usr/bin/g++-4.8
RUN cmake -DCMAKE_BUILD_TYPE=Release ..
RUN make
ENV PYTHONPATH=/home/demon/lmbspecialops/python
ENV LMBSPECIALOPS_LIB=/home/demon/lmbspecialops/build/lib/lmbspecialops.so
WORKDIR /home/demon/examples
CMD ["python3", "example.py"]