-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (26 loc) · 805 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
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update -y && \
apt-get install -y \
build-essential \
cmake \
libopenblas-dev \
liblapack-dev \
python3.6 \
python3.6-dev \
python3-pip && \
python3.6 -m pip install pip --upgrade && \
python3.6 -m pip install wheel
RUN apt-get install -y libsm6 libxext6 libxrender-dev git
RUN cd ~ && \
mkdir -p dlib && \
git clone -b 'v19.19' --single-branch https://github.com/davisking/dlib.git dlib/ && \
cd dlib/ && \
python3 setup.py install
WORKDIR /app
COPY . /app
RUN python3.6 -m pip --no-cache-dir install -r requirements.txt
EXPOSE 8080
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 app:app