forked from PatrickChrist/CDTM-Deep-Learning-Drones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (47 loc) · 1.25 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
# Start with cuDNN base image
FROM nvidia/cuda:7.5-cudnn5-devel
# Install git, wget, bc, cmake and dependencies
RUN apt-get update && apt-get install -y \
git \
wget \
bc \
cmake \
libgflags-dev \
libgoogle-glog-dev \
libopencv-dev \
libleveldb-dev \
libsnappy-dev \
liblmdb-dev \
libhdf5-serial-dev \
libprotobuf-dev \
protobuf-compiler \
libatlas-base-dev \
python-dev \
python-pip \
python-numpy \
python-opencv \
gfortran
# Install boost
RUN apt-get install -y --no-install-recommends libboost-all-dev
# Clone NVIDIA Caffe repo and move into it
RUN cd /root && git clone -b caffe-0.15 https://github.com/NVIDIA/caffe.git && cd caffe && \
# Install python dependencies
cat python/requirements.txt | xargs -n1 pip install
# Move into NVIDIA Caffe repo
RUN cd /root/caffe && \
# Make and move into build directory
mkdir build && cd build && \
# CMake
cmake -DCPU_ONLY=ON .. && \
# Make
make -j"$(nproc)"
# Set CAFFE_HOME
ENV CAFFE_HOME /root/caffe
# Clone DIGITS repo and move into it
RUN cd /root && git clone -b digits-4.0 https://github.com/NVIDIA/DIGITS.git digits && cd digits && \
# pip install
pip install -r requirements.txt
# Expose server port
EXPOSE 5000
# Start server
CMD ["/root/digits/digits-devserver"]