-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile
50 lines (45 loc) · 1.41 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
## Note: Our Caffe version does not work with CuDNN 6
FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04
## The download package
ENV DISPNET_TAR="dispflownet-release-docker.tar.gz"
## Put everything in some subfolder
WORKDIR "/dispflownet"
## Container's mount point for the host's input/output folder
VOLUME "/input-output"
## 1. Install packages
## 2. Download and install CUDA driver
## 3. Download and build DispNet/FlowNet Caffe distro
## 4. Remove some now unused packages and clean up (for a smaller image)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
module-init-tools \
build-essential \
wget \
libatlas-base-dev \
libboost-all-dev \
libgflags-dev \
libgoogle-glog-dev \
libhdf5-serial-dev \
libleveldb-dev \
liblmdb-dev \
libopencv-dev \
libprotobuf-dev \
libsnappy-dev \
protobuf-compiler \
python-dev \
python-numpy \
python-scipy && \
\
wget --progress=bar:force:noscroll --no-check-certificate https://lmb.informatik.uni-freiburg.de/data/${DISPNET_TAR} && \
tar xfz ${DISPNET_TAR} && \
rm ${DISPNET_TAR} && \
cd dispflownet-release && \
make -j`nproc` && \
\
apt-get remove -y \
module-init-tools \
build-essential \
wget && \
apt-get autoremove -y && \
apt-get autoclean -y && \
rm -rf /var/lib/apt/lists/*