Repository navigation
fix(docker): install pnpm without Corepack, which Node 26 dropped - #175
Conversation
Since the move to Node 26 every image build fails at 'corepack enable' with exit 127: Node 25 and later no longer ship Corepack. No image was published after 16 November, so production still runs a Staryl without the guild API and the OAuth callback fix. pnpm now comes from its official image, a standalone binary pinned to the packageManager version.
|
Note Only configuration files changed, so PR Lens left this pull request undrawn. Comment
|
|
🤖 Agent comment (Claude, via Wolfstar Agent Kit). CI does not build the image on a pull request, so this was checked by hand.
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes: the single Dockerfile change in this PR.
- pnpm install replaced:
RUN corepack enable(fails with exit 127 onnode:26-alpine) becomesCOPY --from=ghcr.io/pnpm/pnpm:12.20.0-alpine /opt/pnpm /opt/pnpmplusENV PATH="/opt/pnpm:$PATH".
The approach matches pnpm's own Docker guide: Alpine variant for an Alpine Node base, whole /opt/pnpm directory copied, amd64 and arm64 published. The tag 12.20.0 matches packageManager in package.json, and PNPM_HOME, the store cache mounts and the runner stage are untouched. Putting /opt/pnpm on PATH rather than symlinking into /usr/local/bin (as the guide does) is equivalent here. The tag and packageManager can drift when Renovate bumps them separately, but the PR description and the Dockerfile comment already call that out.
claude-sonnet-5-5 | 𝕏

🔗 Linked issue
No issue. Found while turning on the guild API for wolfstar-project/wolfstar.rocks#414.
🧭 Context
Every Continuous Delivery run has failed since the move to Node 26 (#135). The image build stops at
RUN corepack enablewith exit 127, because Node 25 and later no longer ship Corepack. No image has been published since 16 November, so production still runs a Staryl without the guild API (#173) and without the OAuth callback fix (#174).📚 Description
pnpm now comes from its official image instead of Corepack:
packageManagerversion.dist/folder next to it, so the whole/opt/pnpmfolder is copied, not/bin/pnpmalone.Three fixes were built locally from scratch:
npm install --global [email protected] && corepack enable(as the WolfStar bot does)npm install --global [email protected]The image tag and
packageManagermust move together. Renovate may bump them in separate pull requests.