payloadcms / payloadcms/payload
Missing .npmrc/.yarnrc file in the COPY instruction in the Dockerfile
Open
@zubricks is already working on this.
Since Jun 25, 2026.
- Dominant language
- TypeScript
- Stars
- 44.8k
- Forks
- 4.2k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 53
Description
Documentation Issue
Page: https://payloadcms.com/docs/production/deployment#docker
Section: Dockerfile
Actual line:
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
Expected line:
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc .yarnrc ./
Explanation:
Running npm ci inside a Docker container without the .npmrc/.yarnrc file results in an "npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync" error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.