payloadcms / payloadcms/payload

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

Open
#17,106 4 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.