(feat): Added production level deployment
This commit is contained in:
parent
001c1e5db3
commit
c249c31b8f
2 changed files with 7 additions and 3 deletions
|
|
@ -1,8 +1,10 @@
|
||||||
FROM python:3.11-slim-buster
|
FROM python:3.11-slim-buster
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y build-essential
|
||||||
|
|
||||||
WORKDIR /rideaware_landing
|
WORKDIR /rideaware_landing
|
||||||
|
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
|
@ -12,4 +14,5 @@ ENV FLASK_APP=server.py
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
CMD [ "python3", "-m", "flask", "run", "--host=0.0.0.0"]
|
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "server:app"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
gunicorn
|
||||||
flask
|
flask
|
||||||
python-dotenv
|
python-dotenv
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
Loading…
Add table
Add a link
Reference in a new issue