fix: install curl in nginx image for healthcheck
All checks were successful
Build & Deploy SimO / 🏗️ Build & Deploy (push) Successful in 1m15s

This commit is contained in:
2026-02-22 23:04:41 +01:00
parent d354b3525a
commit dd32164456

View File

@@ -14,6 +14,9 @@ RUN npm run build
# ── Stage 2: Production (nginx pour servir le static export) ───────────────── # ── Stage 2: Production (nginx pour servir le static export) ─────────────────
FROM nginx:alpine FROM nginx:alpine
# Installer curl pour le healthcheck
RUN apk add --no-cache curl
# Copier la config nginx personnalisée # Copier la config nginx personnalisée
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
@@ -27,7 +30,7 @@ RUN chmod +x /docker-entrypoint.sh
EXPOSE 3000 EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD wget -qO- http://localhost:3000/ || exit 1 CMD curl -f http://localhost:3000/ || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]