Add gunicorn

This commit is contained in:
2022-03-24 22:37:37 +03:00
parent 2795f9b5fd
commit bd91e4fba8
3 changed files with 53 additions and 2 deletions

View File

@@ -37,4 +37,4 @@ COPY ./scripts/healthcheck.py /root/healthcheck.py
EXPOSE 8080
CMD uvicorn main:app --host="0.0.0.0" --port="8080"
CMD gunicorn -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080