Add gunicorn

This commit is contained in:
2022-03-24 22:30:49 +03:00
parent 7231b10bf8
commit 32bb885121
3 changed files with 53 additions and 2 deletions

View File

@@ -34,4 +34,4 @@ EXPOSE 8080
WORKDIR /app/
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