From 91773287b779b4e79819100a449178b2ff0914ec Mon Sep 17 00:00:00 2001 From: Jas Kalayan Date: Thu, 8 Oct 2026 11:46:06 +0100 Subject: [PATCH] fix: increase Gunicorn workers, threads and timeout for large uploads --- docker/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2893c3d..7a27e39 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -43,10 +43,8 @@ COPY biosimdb_interface/ biosimdb_interface/ # Install application and its dependencies into the venv RUN pip install --upgrade pip -RUN pip install --no-cache-dir \ - setuptools==84.0.0 \ - gunicorn==26.2.0 - pip install --no-cache-dir . +RUN pip install --no-cache-dir setuptools==84.0.0 gunicorn==26.2.0 +RUN pip install --no-cache-dir . # Stage 3: Runtime FROM ubuntu:26.04@sha256:f144425ff09be612d6d9ad965196e9cdc23dae1f42110a8a11a3e9a8198759f7 @@ -94,4 +92,4 @@ ENV PORT=${PORT} \ EXPOSE ${PORT} -CMD ["sh", "-c", "gunicorn --bind 0.0.0.0:$PORT 'biosimdb_interface:create_app()'"] +CMD ["sh", "-c", "gunicorn --bind 0.0.0.0:$PORT --worker-class gthread --workers 2 --threads 4 --timeout 900 'biosimdb_interface:create_app()'"]