From 923d30f8c64d85f976d42397c0abe9916518053d Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 4 Nov 2025 00:25:51 +0100 Subject: [PATCH] flatten backend folder --- Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b7972ac..7e78bf3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,13 +8,4 @@ RUN npm ci --omit=dev COPY . . EXPOSE 4000 - -# 🕓 Attente de la DB avant le démarrage -CMD sh -c "echo '⏳ Attente de PostgreSQL...' && sleep 10 && npm start" - -# ✅ Installe curl pour le healthcheck -RUN apk add --no-cache curl - -# 🩺 Healthcheck plus fiable avec curl -HEALTHCHECK --interval=10s --timeout=3s --retries=5 \ - CMD curl -f http://localhost:4000/health || exit 1 +CMD ["npm", "start"]