Merged in release/async (pull request #33)

Changed Dockerfile to gunicorn with uvicorn workers

Approved-by: Tiago Ribeiro
This commit is contained in:
carlos.mesquita
2024-11-06 16:20:37 +00:00
committed by Tiago Ribeiro

View File

@@ -38,4 +38,4 @@ EXPOSE 8000
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
CMD exec uvicorn --bind 0.0.0.0:8000 --workers 1 --threads 8 --timeout 0 app.server:app
ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "1", "--threads", "8", "--timeout", "0", "-k", "uvicorn.workers.UvicornWorker", "app.server:app"]