-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
52 lines (41 loc) · 998 Bytes
/
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
FROM python:3.10.3-slim-bullseye
RUN apt-get -y update
RUN apt-get install -y --fix-missing \
build-essential \
cmake \
gfortran \
gcc \
g++ \
git \
wget \
curl \
graphicsmagick \
libgraphicsmagick1-dev \
libatlas-base-dev \
libavcodec-dev \
libavformat-dev \
libgtk2.0-dev \
libjpeg-dev \
liblapack-dev \
libswscale-dev \
pkg-config \
python3-dev \
python3-numpy \
software-properties-common \
zip \
&& apt-get clean && rm -rf /tmp/* /var/tmp/*
WORKDIR /
RUN wget -c -q "https://github.com/davisking/dlib/archive/v19.24.tar.gz"
RUN tar xf "v19.24.tar.gz"
RUN mv dlib-* dlib
RUN mkdir -p dlib/build
RUN (cd dlib/build && cmake .. && cmake --build . --config Release && make install)
RUN rm -rf *.tar.gz /dlib/build
RUN pip3 install Flask
RUN pip3 install dlib
RUN pip3 install face_recognition
RUN pip3 install face_recognition_models
WORKDIR /docker
COPY . .
EXPOSE 5001
CMD python3 ./main.py