Skip to content

Commit 5677fb7

Browse files
committed
fix: add --legacy-peer-deps to Dockerfile npm ci commands
1 parent 4bd66f5 commit 5677fb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR /app
77
COPY package.json package-lock.json ./
88

99
# Install dependencies (full install for build)
10-
RUN npm ci && npm cache clean --force
10+
RUN npm ci --legacy-peer-deps && npm cache clean --force
1111

1212
# Copy source
1313
COPY tsconfig.json ./
@@ -22,7 +22,7 @@ FROM node:22-alpine AS prod-deps
2222
WORKDIR /app
2323

2424
COPY package.json package-lock.json ./
25-
RUN npm ci --only=production --ignore-scripts && npm cache clean --force
25+
RUN npm ci --legacy-peer-deps --only=production --ignore-scripts && npm cache clean --force
2626

2727
# Stage 3: Runtime
2828
FROM node:22-alpine AS runtime

0 commit comments

Comments
 (0)