Skip to content

chore(templates): remove .npmrc and .yarnrc to resolve Docker build failures - #17721

Open
thoeunsopheara wants to merge 1 commit into
payloadcms:mainfrom
thoeunsopheara:fix/docker-template-deployments
Open

chore(templates): remove .npmrc and .yarnrc to resolve Docker build failures#17721
thoeunsopheara wants to merge 1 commit into
payloadcms:mainfrom
thoeunsopheara:fix/docker-template-deployments

Conversation

@thoeunsopheara

Copy link
Copy Markdown

Description

Removes .npmrc and .yarnrc files across templates. These configurations forced --legacy-peer-deps, which is obsolete on modern Node/npm configurations.

Furthermore, keeping these runcom files breaks Docker deployments because the standard Dockerfile doesn't (and shouldn't) execute COPY .npmrc . due to security risks involving accidental exposure of sensitive registry tokens. Removing them simplifies environment configuration and prevents build container crashes.

Fixes #17106

@thoeunsopheara
thoeunsopheara requested a review from denolfe as a code owner August 8, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing .npmrc/.yarnrc file in the COPY instruction in the Dockerfile

1 participant