From e074aace63f38bea326b373db2e8e54ff3264160 Mon Sep 17 00:00:00 2001 From: Timor Morrien Date: Tue, 26 Sep 2023 01:26:14 +0200 Subject: [PATCH] Improve Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 23ca4b37..0a18d26c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ RUN poetry install COPY app /app/app EXPOSE 8000 -CMD ["poetry", "run", "gunicorn", "app.main:app", "-w", "8", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000"] +CMD ["poetry", "run", "gunicorn", "app.main:app", "--workers", "4", "--threads", "32", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000"]