(feat): Added production level deployment
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user