fix(deploy): copy .npmrc before npm ci in frontend Dockerfile #25

Merged
cesnimda merged 1 commits from fix/docker-npmrc-not-copied into main 2026-07-12 02:18:48 +02:00
Owner

Production deploy has been failing since the Next.js migration merged (ERESOLVE on npm ci inside the Docker build) because .npmrc was not copied before npm ci ran. One-line fix.

Production deploy has been failing since the Next.js migration merged (ERESOLVE on npm ci inside the Docker build) because .npmrc was not copied before npm ci ran. One-line fix.
cesnimda added 1 commit 2026-07-12 02:16:23 +02:00
fix(deploy): copy .npmrc before npm ci in frontend Dockerfile
CI and Deploy / test (pull_request) Successful in 2m1s
CI and Deploy / deploy (pull_request) Has been skipped
86cdafb3ef
Production deploy has been broken since the Next.js migration merged:
the Dockerfile ran `npm ci` right after COPY package*.json, before the
later `COPY . .` that would bring in .npmrc -- so the legacy-peer-deps
fix for react-scripts' stale TS ^4 peer constraint (added for CI in
dbb1580) never took effect in the actual deploy image, and every
deploy since has failed with the same ERESOLVE error CI hit before
that fix. Copy .npmrc alongside package*.json so npm ci sees it.
cesnimda merged commit b2e176940c into main 2026-07-12 02:18:48 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cesnimda/jobtrackingapp#25