From d66ae2641ea864782ef009de80294ab5bd375768 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sat, 21 Nov 2026 17:15:39 -0500 Subject: [PATCH] fix(CR-03): run Gunicorn with 1 worker and 4 threads for authoritative in-memory rate limiting - Change --workers 2 to --workers 1 in Dockerfile so Flask-Limiter memory:// storage is shared across threads --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 968c2b5..c07aaf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,4 +18,4 @@ RUN mkdir -p /app/data EXPOSE 8000 -CMD ["uv", "run", "--no-dev", "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--threads", "4", "app:create_app()"] +CMD ["uv", "run", "--no-dev", "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "1", "--threads", "4", "app:create_app()"]