diff --git a/angular-basic/.gitignore b/angular-basic/.gitignore index 2d02efe..6b970a5 100644 --- a/angular-basic/.gitignore +++ b/angular-basic/.gitignore @@ -42,3 +42,4 @@ testem.log Thumbs.db sae-lib +my-workspace \ No newline at end of file diff --git a/angular-basic/Dockerfile b/angular-basic/Dockerfile index 6efd472..8012723 100644 --- a/angular-basic/Dockerfile +++ b/angular-basic/Dockerfile @@ -13,7 +13,7 @@ COPY my-workspace /app/my-workspace WORKDIR /app/angular-basic RUN echo "============= run setup script " - +RUN pkg install bash nano ncdu RUN ./setup.sh # Construire le projet Angular (production) @@ -31,9 +31,6 @@ FROM nginx:1.27-alpine AS production RUN rm -rf /usr/share/nginx/html/* # Copier la sortie du build (on testera le bon chemin ensuite) - -#COPY --from=build /app/dist /usr/share/nginx/html - COPY --from=build /app/angular-basic/dist/angular-basic/browser/* /usr/share/nginx/html RUN echo "============= liste des fichiers dans nginx html" @@ -45,9 +42,10 @@ RUN echo "=============" # 🔹 Exposer le port par défaut d'nginx (80) EXPOSE 80 + HEALTHCHECK --interval=30s --timeout=10s --retries=3 \ CMD wget -qO- http://localhost:80/ || exit 1 RUN echo "servir le front static CSC: done." -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;"] diff --git a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html index 1605ae4..61931fd 100644 --- a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html +++ b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html @@ -1,6 +1,9 @@ -