Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ USER nobody
# Expose port
EXPOSE 8000

# Use Gunicorn config so worker lifecycle settings are explicit and env-overridable.
CMD ["gunicorn", "app.main:app", "--config", "gunicorn_conf.py"]
# Use environment variable for workers count and optimize for database connections
CMD ["sh", "-c", "gunicorn app.main:app -k uvicorn.workers.UvicornWorker --workers ${WORKERS:-5} --bind 0.0.0.0:8000 --timeout 120 --max-requests 1000 --max-requests-jitter 100"]
21 changes: 0 additions & 21 deletions gunicorn_conf.py

This file was deleted.

Loading