-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.amd64
52 lines (41 loc) · 1.05 KB
/
Dockerfile.amd64
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
FROM ubuntu:14.04
MAINTAINER Samuel Cozannet <[email protected]>
# This is installing the basic python we need for OpenCV
RUN apt-get update && \
apt-get upgrade -yqq && \
apt-get install -yqq \
python-opencv \
python-pip \
python-setuptools \
python-numpy \
git \
nano \
wget \
curl \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Now we install the HTTP API
RUN apt-get update && \
apt-get upgrade -yqq && \
apt-get install -yqq \
python-django \
python-numpy \
python-requests \
python-dev \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Now that everything is installed with deps, let's upgrade to the latest versions
RUN pip install --upgrade \
django \
numpy \
requests
RUN mkdir -p /data/models \
/data/images \
/opt/face_recognizer
ADD bin /opt/face_recognizer/bin
ADD lib /opt/face_recognizer/lib
ADD www /opt/face_recognizer/www
ADD lib/*.xml /opt/face_recognizer/www/cv_api/cascades/
ENV API_PORT 8000
EXPOSE ${API_PORT}
CMD ["/opt/face_recognizer/bin/start-fr.sh"]