forked from endernewton/tf-faster-rcnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
63 lines (49 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#FROM nvidia/cuda:8.0-cudnn6-devel
FROM nvidia/cuda:9.0-cudnn7-devel
WORKDIR /root
COPY keyboard /etc/default/keyboard
ENV http_proxy http://zscaler-paris.corp.solocal:80/
ENV https_proxy http://zscaler-paris.corp.solocal:80/
ENV no_proxy .mappy.priv
# Get required packages
RUN apt-get update && \
apt-get install vim \
python-pip \
python-dev \
python-opencv \
python-tk \
libjpeg-dev \
libfreetype6 \
libfreetype6-dev \
zlib1g-dev \
cmake \
wget \
cython \
git \
-y
# Get required python modules
RUN pip install --upgrade pip
COPY requirements.txt .
RUN pip install -r requirements.txt
# Update numpy
RUN pip install -U numpy
# Install python interface for COCO
RUN git clone https://github.com/pdollar/coco.git
WORKDIR /root/coco/PythonAPI
RUN make
RUN apt-get update
RUN apt-get install cuda nvidia-cuda-toolkit -y
RUN apt-get install libgeos-dev -y
WORKDIR /ai/tf-faster-rcnn
ADD ./lib ./lib
ADD tools ./tools
ADD experiments ./experiments
# Add CUDA to the path
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/cuda/lib64
ENV CUDA_HOME /usr/local/cuda
ENV PYTHONPATH /root/coco/PythonAPI
RUN ldconfig
WORKDIR /ai/tf-faster-rcnn/lib
RUN make clean
RUN make
WORKDIR /ai/tf-faster-rcnn