(feat): Added production level deployment
This commit is contained in:
parent
0628d45527
commit
0610bb7fdf
2 changed files with 13 additions and 5 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -1,12 +1,19 @@
|
|||
FROM python:3.11-slim
|
||||
FROM python:3.11-slim-buster
|
||||
|
||||
WORKDIR /admin-panel
|
||||
# Install build dependencies (build-essential provides gcc and other tools)
|
||||
RUN apt-get update && apt-get install -y build-essential
|
||||
|
||||
WORKDIR /rideaware_landing
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
COPY requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV FLASK_APP=server.py
|
||||
|
||||
EXPOSE 5001
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5001", "app:app"]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
gunicorn
|
||||
flask
|
||||
python-dotenv
|
||||
Werkzeug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue