-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 825 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
FROM python:3
MAINTAINER pejmanS21
# os level reqs
RUN apt-get update -y \
&& apt install libgl1-mesa-glx -y \
&& apt-get install 'ffmpeg' 'libsm6' 'libxext6' -y \
&& apt-get install -y build-essential libzbar-dev
RUN pip install install --upgrade pip
# install large requirements to save time in next builds
RUN pip install --no-cache-dir torch \
&& pip install --no-cache-dir numpy \
&& pip install --no-cache-dir opencv-python \
&& pip install --no-cache-dir torchvision \
&& pip install --no-cache-dir matplotlib \
&& pip install --no-cache-dir deep_utils \
&& pip install --no-cache-dir Django \
&& pip install --no-cache-dir facenet-pytorch \
&& pip install --no-cache-dir termcolor
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
EXPOSE 8000