feat: switch to Gunicorn for production
This commit is contained in:
@@ -30,9 +30,10 @@ RUN uv venv && \
|
||||
ENV FLASK_APP=main.py
|
||||
ENV FLASK_ENV=production
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
ENV GUNICORN_CMD_ARGS="--workers=4 --bind=0.0.0.0:5000 --timeout=120"
|
||||
|
||||
# Expose port
|
||||
EXPOSE 5000
|
||||
|
||||
# Run the application
|
||||
CMD ["python", "main.py"]
|
||||
# Run the application with Gunicorn
|
||||
CMD ["gunicorn", "main:app"]
|
||||
Reference in New Issue
Block a user