dockerisation
This commit is contained in:
parent
ace492f665
commit
a4e9853832
@ -8,7 +8,8 @@ WORKDIR /application
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# 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 the rest of the application
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@ -14,7 +14,9 @@ WORKDIR /app
|
|||||||
# ============================================
|
# ============================================
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
COPY package.json package-lock.json* ./
|
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
|
# Étape 2: Builder
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user