fix: utiliser npm ci et ajouter vérification express dans Dockerfile

This commit is contained in:
y.campiontrebouta@innotexnas.ovh
2026-02-05 00:16:43 +01:00
parent b3f868e134
commit 88b9c65f7b

View File

@@ -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