Skip to content

Commit d04e74c

Browse files
committed
Stop using gunicorn and use uvicorn directly to run application
1 parent 2d88cf4 commit d04e74c

File tree

3 files changed

+2
-35
lines changed

3 files changed

+2
-35
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ ENV GIT_SHA=$git_sha
1919

2020
# Start the server with uvicorn
2121
ENTRYPOINT ["poetry", "run"]
22-
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "backend:app"]
22+
CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "8000"]

poetry.lock

Lines changed: 1 addition & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ motor = "3.5.0"
1414
python-dotenv = "^1.0.1"
1515
pyjwt = "^2.8.0"
1616
httpx = "^0.27.0"
17-
gunicorn = "^22.0.0"
1817
pydantic = "^1.10.17"
1918
spectree = "^1.2.10"
2019
deepmerge = "^1.1.1"

0 commit comments

Comments
 (0)