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.
Documentation Issue
Page: https://payloadcms.com/docs/production/deployment#docker
Section: Dockerfile
Actual line:
Expected line:
Explanation:
Running
npm ciinside a Docker container without the.npmrc/.yarnrcfile 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.