Repository navigation
Pin Node 22 for Docker UI builds - #12
Merged
Merged
Conversation
node:lts now resolves to Node 26, which no longer ships corepack, so `corepack enable` fails with exit 127 and breaks the server and UI image builds. Pin to node:22, the version CI builds and tests ui-next against. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Jenkins multi-arch build of
ghcr.io/codaxy/conductor:serverfails in theui-builderstage:node:ltsnow resolves to Node 26 (v26.13.1). Node 25 and later no longer ship corepack, socorepack enablefails. The Dockerfile hasn't changed; the floating base tag moved.Change
Pin the UI build stages to
node:22, the versionci.ymlandui-next-ci.ymlbuild and testui-nextagainst.Dockerfile.nextalready uses it.docker/server/Dockerfile:ui-builderstagedocker/ui/Dockerfile:builderstage (samenode:lts+corepack enablepattern, so it would fail the same way)Verification
docker run node:lts→ v26.13.1, nocorepack;docker run node:22→ v22.23.5,corepackat/usr/local/bin/corepackdocker build -f docker/server/Dockerfile --target ui-builder .→pnpm installandpnpm buildsucceed locallydocker/ui/Dockerfilenot built separately (same base image and same commands)Not in this PR
publish.yml,publish_s3.yamlandpublish_build.yamluseactions/setup-nodewithnode-version: 'lts/*'followed bycorepack enable. They will likely hit the same failure on their next run.🤖 Generated with Claude Code