-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 945 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 945 Bytes
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
FROM ubuntu:16.04
# Set default locale.
ENV LANG C.UTF-8
RUN apt-get --yes update && apt-get --yes install python3-pip cmake libx11-dev libfontconfig1 libxrender1 libsm6 libxext6 libglib2.0-0
# Install Python packages.
RUN pip3 install --upgrade pip
RUN pip3 install surround==0.0.2
RUN pip3 install opencv-python==3.4.1.15
RUN pip3 install numpy==1.14.5
RUN pip3 install tensorflow==1.8.0
RUN pip3 install tornado==5.1.1
RUN pip3 install psycopg2==2.7.7
RUN pip3 install imutils==0.5.2
RUN pip3 install celery==4.2.1
RUN pip3 install flower==0.9.2
RUN pip3 install redis==2.10.6
# Clean up to reduce image size.
RUN rm -rf /root/.cache/pip /var/lib/apt/lists/*
# Prepare directory for output images.
RUN mkdir -p /output
# Copy code and config.
COPY . /usr/local/src/a2i2/face-recognition
COPY ./facerecognition/config.yaml /config.yaml
WORKDIR /usr/local/src/a2i2/face-recognition
ENTRYPOINT ["python3", "-m", "facerecognition"]
CMD []