-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
35 lines (21 loc) · 893 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
# FROM python:3.8
# MAINTAINER SakethChandra "https://github.com/Saketh-Chandra/"
# RUN apt-get -y install git
# # RUN apt-get install python3 -y
# # RUN apt-get install -y python3-pip
# RUN git clone https://github.com/Saketh-Chandra/Covid-19_website.git
# WORKDIR /Covid-19_website/
# RUN pip3 install --trusted-host pypi.python.org --requirement requirements.txt
# ENV port=5000
# # ENTRYPOINT Flask_APP=/Covid-19_website/app.py flask run --host=0.0.0.0
# CMD gunicorn --bind 0.0.0.0:$port app:app
FROM python:3.8-slim-buster
MAINTAINER SakethChandra "https://github.com/Saketh-Chandra/"
WORKDIR /Covid-19_website/
COPY requirements.txt requirements.txt
RUN pip3 install --trusted-host pypi.python.org --requirement requirements.txt
COPY . .
RUN ls
ENV port=5000
ENTRYPOINT Flask_APP=/Covid-19_website/app.py flask run --host=0.0.0.0
CMD gunicorn --bind 0.0.0.0:$port app:app