From 719cba3d5d97613732353cdcc19c538bac2242b4 Mon Sep 17 00:00:00 2001 From: scayac Date: Mon, 16 Jun 2025 17:21:30 +0200 Subject: [PATCH] Modif Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e710345..1ffa7e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,5 +32,5 @@ RUN python manage.py collectstatic --noinput # Exposer le port 8000 EXPOSE 8000 -# Commande de lancement avec mod_wsgi-express -CMD mod_wsgi-express start-server --port 8000 --url-alias /static /code/static /code/ia_prof/wsgi.py \ No newline at end of file +# Commande de lancement avec mod_wsgi-express (utilisation d'un utilisateur non-root) +CMD mod_wsgi-express start-server --user www-data --group www-data --port 8000 --url-alias /static /code/static /code/ia_prof/wsgi.py \ No newline at end of file