Add gunicorn

This commit is contained in:
2022-03-24 22:34:05 +03:00
parent 036c1b92bb
commit 50cf387efc
3 changed files with 57 additions and 6 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