This commit is contained in:
2025-05-22 20:33:58 +02:00
parent ce03fbf12f
commit c4c7e09aaa
2 changed files with 2 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PYTHONPATH=/app
# Set work directory
WORKDIR /app
@@ -24,4 +25,4 @@ ENV FLASK_APP=app.py
ENV FLASK_ENV=production
# Run the application with gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--chdir", "/app", "app:app"]

View File

@@ -9,8 +9,6 @@ services:
- FLASK_APP=app.py
- FLASK_ENV=production
- DATABASE_URL=postgresql://postgres:postgres@db:5432/verpotjelot
volumes:
- .:/app
depends_on:
- db
restart: unless-stopped