-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (36 loc) · 1.08 KB
/
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
41
42
43
44
45
46
FROM node:6.9
# Expose http and https ports
EXPOSE 80
EXPOSE 443
# Non production ports
EXPOSE 8080
EXPOSE 8443
# Default node env to production
ENV NODE_ENV 'production'
# Will use these files if they're mounted as a volume for https
ENV CRT_FILE /etc/ssl/certs/paint-me_me.crt
ENV KEY_FILE /etc/ssl/private/paint-me.key
ENV CA_BUNDLE /etc/ssl/certs/paint-me_me.ca-bundle
ENV AUTH_FILE /etc/ssl/firebase_auth.txt
# Install dependencies
RUN apt-get update && apt-get install -y python \
python-pip \
build-essential
RUN pip install --upgrade pip
RUN pip install tensorflow \
Pillow \
numpy \
scipy \
simplejson
# Copy the project files.
COPY *.js package.json /paint-me/
COPY app_api /paint-me/app_api/
COPY app_ui /paint-me/app_ui/
COPY public /paint-me/public/
COPY bin /paint-me/bin/
COPY neural-style /paint-me/neural-style
# Set the working directory
WORKDIR /paint-me
VOLUME /paint-me/public/uploaded/
RUN npm install
ENTRYPOINT npm start