Skip to content

Commit a609537

Browse files
committed
- fix: update npm install commands to use --force
1 parent de6ed21 commit a609537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /app
44

55
COPY package*.json ./
66

7-
RUN npm install --legacy-peer-deps
7+
RUN npm install --force
88

99
COPY . .
1010

@@ -21,7 +21,7 @@ RUN adduser -S nestjs -u 1001
2121

2222
COPY package*.json ./
2323

24-
RUN npm install --omit=dev --legacy-peer-deps
24+
RUN npm install --omit=dev --force
2525

2626
COPY --from=builder --chown=nestjs:nodejs /app/dist ./dist
2727

0 commit comments

Comments
 (0)