Copy .npmrc into production Docker stage so npm ci --omit=dev respects legacy-peer-deps (#325)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ba9bf64e37
commit
9a71a68ede
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ WORKDIR /app
|
|||
RUN npm ci
|
||||
|
||||
FROM node:20-alpine AS production-dependencies-env
|
||||
COPY ./package.json package-lock.json /app/
|
||||
COPY ./package.json package-lock.json .npmrc /app/
|
||||
WORKDIR /app
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue