force npm install in Dockerfile to ensure all dependencies are installed
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
FROM node:20-alpine as build-stage
|
FROM node:20-alpine as build-stage
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install --force
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user