-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (22 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
40 lines (22 loc) · 742 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
37
38
39
40
FROM centos/python-36-centos7:latest
USER root
#define the present working directory
WORKDIR /covid19
ADD . /covid19
RUN yum -y install java-1.8.0-openjdk
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
ENV FLASK_APP main.py
ENV FLASK_RUN_HOST 0.0.0.0
ENV FLASK_RUN_PORT 8080
####
####
#### OPTIONAL : 4. SET JAVA_HOME environment variable, uncomment the line below if you need it
#ENV JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk"
####
EXPOSE 8080
ADD main.py /
CMD ["flask", "run"]
#### reference link for the Dockerfile
# https://qiita.com/legacyworld/items/1c9ac1d3859a321d6e84
# https://stackoverflow.com/questions/64198813/gae-deploy-error-no-module-named-tabula