From 643851a82184095c4d3e49daa735a60702a0a270 Mon Sep 17 00:00:00 2001 From: Zeecka Date: Sun, 18 Jan 2026 21:33:43 +0100 Subject: [PATCH] Workers in .env file --- .env.example | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 3d231af..71cb758 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ # Web application configuration WEB_APP_PORT=5000 +WEB_WORKERS=8 # Application configuration PROJECT_VERSION=3.1.3 diff --git a/Dockerfile b/Dockerfile index fb0ce36..6e3d041 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,4 +76,4 @@ COPY --from=builder /usr/local/bin/jpseek /usr/local/bin/jpseek COPY --from=builder /usr/local/bin/jsteg /usr/local/bin/jsteg # Commande de lancement -CMD ["gunicorn", "-w", "8", "-b", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "--capture-output", "aperisolve.utils.wsgi:application"] +CMD gunicorn -w ${WEB_WORKERS:-8} -b 0.0.0.0:5000 --access-logfile - --error-logfile - --log-level info --capture-output aperisolve.utils.wsgi:application