Use uvicorn

This commit is contained in:
2023-05-14 16:31:03 +02:00
parent 92c2cf7077
commit 7948ba71f6
6 changed files with 40 additions and 76 deletions

View File

@@ -39,4 +39,4 @@ COPY ./scripts/healthcheck.py /root/healthcheck.py
EXPOSE 8080
CMD gunicorn -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080 --timeout 600
CMD uvicorn main:app --host 0.0.0.0 --port 8080 --loop uvloop --timeout-keep-alive 600