From a4e985383238cb4bf6d22579b12b17540b2da870 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 18 Jan 2026 20:38:13 +0100 Subject: [PATCH] dockerisation --- Dockerfile | 3 ++- Dockerfile.prod | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 30f41eb..336351a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ WORKDIR /application COPY package*.json ./ # Install dependencies -RUN npm ci +# Utiliser npm install pour plus de flexibilité avec les dépendances +RUN npm install --legacy-peer-deps --prefer-offline --no-audit # Copy the rest of the application COPY . . diff --git a/Dockerfile.prod b/Dockerfile.prod index 62887ae..741df87 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -14,7 +14,9 @@ WORKDIR /app # ============================================ FROM base AS deps COPY package.json package-lock.json* ./ -RUN npm ci +# Utiliser npm install au lieu de npm ci pour plus de flexibilité +# Si package-lock.json est présent, il sera utilisé, sinon npm install le créera +RUN npm install --legacy-peer-deps --prefer-offline --no-audit # ============================================ # Étape 2: Builder