dockerisation

This commit is contained in:
alma 2026-01-18 20:38:13 +01:00
parent ace492f665
commit a4e9853832
2 changed files with 5 additions and 2 deletions

View File

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

View File

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