From a3a1d3306dbfc77ed22a41a9bb410fd36852ab04 Mon Sep 17 00:00:00 2001 From: EvanChal Date: Sun, 25 Jan 2026 22:52:08 +0100 Subject: [PATCH] fix(dockerfile-fontend) --- frontend/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index e6febc5..cad9bf9 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -34,7 +34,7 @@ COPY . . # Copier le build prod COPY --from=builder /app/dist /usr/share/nginx/html -# Config nginx - écrire dans le fichier principal +# Config nginx RUN echo 'worker_processes auto; \ events { worker_connections 1024; } \ http { \ @@ -45,7 +45,7 @@ http { \ gzip on; \ gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; \ server { \ - listen 8080; \ + listen 8082; \ root /usr/share/nginx/html; \ index index.html; \ location / { \ @@ -62,13 +62,13 @@ http { \ RUN echo '#!/bin/sh' > /entrypoint.sh && \ echo 'if [ "$MODE" = "dev" ]; then' >> /entrypoint.sh && \ echo ' echo "🔧 Mode DEVELOPPEMENT"' >> /entrypoint.sh && \ - echo ' exec npm run dev -- --host 0.0.0.0 --port 8080' >> /entrypoint.sh && \ + echo ' exec npm run dev -- --host 0.0.0.0 --port 8082' >> /entrypoint.sh && \ echo 'else' >> /entrypoint.sh && \ echo ' echo "🚀 Mode PRODUCTION"' >> /entrypoint.sh && \ echo ' exec nginx -g "daemon off;"' >> /entrypoint.sh && \ echo 'fi' >> /entrypoint.sh && \ chmod +x /entrypoint.sh -EXPOSE 8080 +EXPOSE 8082 CMD ["/entrypoint.sh"] \ No newline at end of file