Skip to content

Commit

Permalink
added env port var
Browse files Browse the repository at this point in the history
  • Loading branch information
Saketh-Chandra authored Dec 15, 2020
1 parent 40aaf52 commit fcdaed7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ 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 install python3-pip -y
RUN apt-get install python3 -y
RUN apt install python3-pip -y

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:5000 app:app
CMD gunicorn --bind 0.0.0.0:$port app:app

0 comments on commit fcdaed7

Please sign in to comment.