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