-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 700 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
# our base image
FROM ubuntu:18.04
# upgrade pip
RUN apt-get update -y && \
apt-get install -y python3 && \
apt-get install -y python3-pip python3-dev && \
pip3 install --upgrade pip && \
apt-get install curl -y && \
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y nodejs
# install Python modules needed by the Python app
COPY . .
#RUN apt-get install screen -y
# COPY requirements.txt /usr/src/app/
RUN pip3 install --no-cache-dir -r requirements.txt
RUN npm install --prefix .
EXPOSE 5000
EXPOSE 3000
#CMD ["cd", "/usr/src/app/backend_tf"]
#CMD ["python3", "/usr/src/app/backend_tf/app.py", "&"]
CMD ["npm", "start", "--prefix", "."]