force npm install in Dockerfile to ensure all dependencies are installed

This commit is contained in:
Parsa Nazer
2025-07-28 16:32:53 +03:30
parent 5ae3ae9376
commit 4f3ce14b0d
+1 -1
View File
@@ -1,7 +1,7 @@
FROM node:20-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --force
COPY . .
RUN npm run build