From 73de4916fc9c9cd65f2876448bf5516046dad1fb Mon Sep 17 00:00:00 2001 From: valyo <582646+valyo@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:20:02 +0100 Subject: [PATCH] change worker class to eventlet and pip install it --- Dockerfiles/backend.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfiles/backend.Dockerfile b/Dockerfiles/backend.Dockerfile index a98474321..e953ee811 100644 --- a/Dockerfiles/backend.Dockerfile +++ b/Dockerfiles/backend.Dockerfile @@ -69,10 +69,10 @@ RUN npm run css ######################### FROM base as production -RUN pip install gunicorn +RUN pip install gunicorn eventlet # Add parameters for gunicorn -ENV GUNICORN_CMD_ARGS "--bind=0.0.0.0:5000 --workers=2 --thread=4 --worker-class=gthread --forwarded-allow-ips='*' --access-logfile -" +ENV GUNICORN_CMD_ARGS "--bind=0.0.0.0:5000 --workers=10 --worker-class=eventlet --timeout 120 --forwarded-allow-ips='*' --access-logfile - --error-logfile -" # Set working directory - 'code' dir in container, 'code' dir locally (in code) WORKDIR /code/dds_web