fix: remet le verrou de dependances frontend d'aplomb
This commit is contained in:
@@ -7,8 +7,11 @@
|
||||
FROM node:22-alpine AS frontend
|
||||
|
||||
WORKDIR /frontend
|
||||
COPY frontend/package.json frontend/package-lock.json* ./
|
||||
RUN npm install
|
||||
# `npm ci` (et non `npm install`) : l'image doit installer exactement l'arbre
|
||||
# du lock, sinon deux builds du même tag peuvent embarquer des dépendances
|
||||
# différentes. Le lock n'est donc plus optionnel.
|
||||
COPY frontend/package.json frontend/package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user