Skip to content

Commit 5e0cf05

Browse files
committed
Use gunicorn in production
1 parent 897433c commit 5e0cf05

3 files changed

Lines changed: 69 additions & 119 deletions

File tree

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ EXPOSE 8001
2222
ENV PYTHONDONTWRITEBYTECODE=1
2323
ENV PYTHONUNBUFFERED=1
2424

25-
CMD ["poetry", "run", "uvicorn", "acidwatch_api.app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
25+
CMD ["poetry", "run", "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "acidwatch_api.app:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)