From c6b95ef9c79dc069bbad7544c7c95a085ac03ed3 Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 21 Nov 2025 15:20:44 +0000 Subject: [PATCH] Update client/Dockerfile --- client/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index 2929826..0646779 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -16,12 +16,14 @@ RUN npm run build -- --configuration production # Étape 2 : image finale Nginx pour servir les fichiers statiques FROM nginx:alpine +# Nettoyer la page par défaut Nginx +RUN rm -rf /usr/share/nginx/html/* + # Copie du build Angular vers Nginx COPY --from=build /app/dist/client /usr/share/nginx/html -# Optionnel : conf Nginx custom (SPA, 404 → index.html, etc.) -# COPY nginx.conf /etc/nginx/conf.d/default.conf +# Conf Nginx custom pour SPA +COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 - CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file