forked from ujjawal-garg/react-dockerized-face-morph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (25 loc) · 800 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
FROM gobletsky/bionic-opencv-3.4.1:with-dlib-19.13
MAINTAINER Ujjawal Garg <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Install nodejs carbon
RUN apt-get update && apt-get -y install curl \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash \
&& apt-get install -y nodejs build-essential
RUN npm i [email protected] -g
# Create app directory
WORKDIR /usr/src/app
COPY ./py_face_morph/requirements.txt ./py_face_morph/requirements.txt
RUN source /usr/local/bin/virtualenvwrapper.sh \
&& workon cv \
&& pip install -r py_face_morph/requirements.txt
COPY package*.json ./
RUN npm install --no-optional
RUN apt-get -y install ffmpeg
# Bundle app source
COPY . .
EXPOSE 8080
ENV NODE_ENV production
ENV PORT 8080
ENV HOST 0.0.0.0
RUN npm run build
CMD [ "npm", "start" ]