fix(docker): take the pnpm version from package.json #31

Merged
fristyagent merged 1 commits from fix/dockerfile-pnpm-version into main 2026-11-06 13:22:28 +03:00
Collaborator

The Dockerfile pinned pnpm@11.2.2 while package.json declares packageManager: pnpm@12.17.0. Renovate only has a manager for the packageManager field and the lockfile — nothing parses RUN npm install -g pnpm@… — so the line drifted a major behind and still described a version the build never used.

Proof from the deploy build of 20af0c6 (run 760, job Build & Push Image):

#8  [builder 2/7] RUN npm install -g pnpm@11.2.2
#11 [builder 5/7] RUN pnpm install --frozen-lockfile
#11 56.27 Done in 16.8s using pnpm v12.16.1

pnpm 10+ reads packageManager and downloads that version at runtime, so the pin was dead weight on top of the drift.

The version is now read from the same field Renovate maintains:

RUN npm install -g pnpm@$(node -p "require('./package.json').packageManager.split('@').pop()")")

Verified locally with docker build --target builder . — the image reports pnpm 12.17.0 and the Next build passes. The Deploy workflow will confirm on merge.

The Dockerfile pinned `pnpm@11.2.2` while `package.json` declares `packageManager: pnpm@12.17.0`. Renovate only has a manager for the `packageManager` field and the lockfile — nothing parses `RUN npm install -g pnpm@…` — so the line drifted a major behind and still described a version the build never used. Proof from the deploy build of `20af0c6` (run 760, job `Build & Push Image`): ``` #8 [builder 2/7] RUN npm install -g pnpm@11.2.2 #11 [builder 5/7] RUN pnpm install --frozen-lockfile #11 56.27 Done in 16.8s using pnpm v12.16.1 ``` pnpm 10+ reads `packageManager` and downloads that version at runtime, so the pin was dead weight on top of the drift. The version is now read from the same field Renovate maintains: ```dockerfile RUN npm install -g pnpm@$(node -p "require('./package.json').packageManager.split('@').pop()")") ``` Verified locally with `docker build --target builder .` — the image reports `pnpm 12.17.0` and the Next build passes. The Deploy workflow will confirm on merge.
fristyagent added 1 commit 2026-11-06 13:20:28 +03:00
fix(docker): take the pnpm version from package.json
CI / Code Health (pull_request) Successful in 8s
CI / Lint & Build (pull_request) Successful in 32s
9af3043972
The Dockerfile pinned pnpm@11.2.2 while package.json declares
packageManager pnpm@12.17.0. Renovate only updates the npm manager's
packageManager field and the lockfile, so the RUN line drifted a major
behind and no longer described the build.

pnpm 10+ already reads packageManager and downloads that version at
runtime, so the pin was also dead weight: the deploy log shows
"npm install -g pnpm@11.2.2" followed by "Done in 16.8s using pnpm
v12.16.1".

Read the version from package.json instead, so the one field Renovate
maintains is the only source of truth.
fristyagent merged commit 33bb5369f6 into main 2026-11-06 13:22:28 +03:00
fristyagent deleted branch fix/dockerfile-pnpm-version 2026-11-06 13:22:28 +03:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: fristy/comingsoon#31