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
This commit is contained in:
kiskaadee committed 2026-11-21 17:15:39 -05:00
1 parent 8c0191e958
commit d66ae2641e
1 file changed
+1 -1
+1 -1
View File
@@ -18,4 +18,4 @@ RUN mkdir -p /app/data
EXPOSE 8000 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()"]