From 88b9c65f7bd8757134018e098ab9657d4cc35d0c Mon Sep 17 00:00:00 2001 From: "y.campiontrebouta@innotexnas.ovh" Date: Thu, 5 Feb 2026 00:16:43 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20utiliser=20npm=20ci=20et=20ajouter=20v?= =?UTF-8?q?=C3=A9rification=20express=20dans=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 719a663..305c9b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,11 @@ WORKDIR /app # Copy package files COPY backend/package*.json ./ -# Install dependencies cleanly -RUN npm install --production +# Install dependencies with npm ci for reproducibility +RUN npm ci --only=production || npm install --production + +# Verify critical dependencies are installed +RUN test -d node_modules/express || (echo "ERROR: express not installed" && exit 1) # Copy application code COPY backend/src ./src