File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a sample Dockerfile you can modify to deploy your own app based on face_recognition
2
+
3
+ FROM python:3.4-slim
4
+
5
+ RUN apt-get -y update
6
+ RUN apt-get install -y --fix-missing \
7
+ build-essential \
8
+ cmake \
9
+ gfortran \
10
+ git \
11
+ wget \
12
+ curl \
13
+ graphicsmagick \
14
+ libgraphicsmagick1-dev \
15
+ libatlas-dev \
16
+ libavcodec-dev \
17
+ libavformat-dev \
18
+ libboost-all-dev \
19
+ libgtk2.0-dev \
20
+ libjpeg-dev \
21
+ liblapack-dev \
22
+ libswscale-dev \
23
+ pkg-config \
24
+ python3-dev \
25
+ python3-numpy \
26
+ software-properties-common \
27
+ zip \
28
+ && apt-get clean && rm -rf /tmp/* /var/tmp/*
29
+
30
+ RUN cd ~ && \
31
+ mkdir -p dlib && \
32
+ git clone -b 'v19.4' --single-branch https://github.com/davisking/dlib.git dlib/ && \
33
+ cd dlib/ && \
34
+ python3 setup.py install --yes USE_AVX_INSTRUCTIONS
35
+
36
+
37
+ # The rest of this file just runs an example script.
38
+
39
+ # If you wanted to use this Dockerfile to run your own app instead, maybe you would do this:
40
+ # COPY . /root/your_app_or_whatever
41
+ # RUN cd /root/your_app_or_whatever && \
42
+ # pip3 install -r requirements.txt
43
+ # RUN whatever_command_you_run_to_start_your_app
44
+
45
+ COPY . /root/face_recognition
46
+ RUN cd /root/face_recognition && \
47
+ pip3 install -r requirements.txt && \
48
+ python3 setup.py install
49
+
50
+ CMD cd /root/face_recognition/examples && \
51
+ python3 recognize_faces_in_pictures.py
You can’t perform that action at this time.
0 commit comments