forked from huan/node-facenet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 841 Bytes
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 841 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
34
35
36
FROM tensorflow/tensorflow:latest-gpu-py3
MAINTAINER Huan LI <zixia@zixia.net>
ENV LC_ALL C.UTF-8
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get update && apt-get install -y \
git \
iputils-ping \
nodejs \
python2.7 \
vim \
&& rm -rf /var/lib/apt/lists/*
ENV PYTHON_FACENET /python-facenet
RUN mkdir "$PYTHON_FACENET" \
&& cd "$PYTHON_FACENET" \
&& git clone https://github.com/davidsandberg/facenet.git . \
&& pip install \
h5py \
opencv-python \
&& echo "Python Facenet Installed."
ENV PYTHONPATH "$PYTHON_FACENET/src"
# Open API Specification - https://www.openapis.org/
RUN mkdir /oas
WORKDIR /oas
COPY package.json .
RUN npm install --python=python2.7 && rm -fr /tmp/* ~/.npm
COPY . .
EXPOSE 80
VOLUME [ "/facenet" ]
CMD [ "npm", "start" ]