From 23852edeec3e269db5c24c9a4cc061a2d767be0f Mon Sep 17 00:00:00 2001 From: jfgiraud Date: Sun, 9 Aug 2026 08:07:39 +0000 Subject: [PATCH] Utiliser Gunicorn en production --- Dockerfile | 3 ++- requirements.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b67ecfc..6fe7300 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,5 @@ USER appuser EXPOSE 5000 -CMD ["python", "run.py"] +#CMD ["python", "run.py"] +CMD ["gunicorn","--bind","0.0.0.0:5000","--workers","3","run:app"] diff --git a/requirements.txt b/requirements.txt index 5a26a10..2ad71d5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,3 +22,4 @@ typing_extensions==4.16.0 urllib3==2.7.0 Werkzeug==3.1.8 WTForms==3.1.2 +gunicorn