mirror of
https://github.com/Comfy-Org/comfyui-ci-container.git
synced 2026-11-04 23:47:34 +00:00
[PR #26] [MERGED] feat: drive Node version from caller's .nvmrc via fnm + Corepack #26
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfyui-ci-container#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfyui-ci-container/pull/26
Author: @DrJKL
Created: 6/24/2026
Status: ✅ Merged
Merged: 6/25/2026
Merged by: @DrJKL
Base:
main← Head:node-version-via-fnm📝 Commits (1)
2ef22dffeat: drive Node version from caller's .nvmrc via fnm + Corepack📊 Changes
2 files changed (+13 additions, -5 deletions)
View changed files
📝
Dockerfile(+11 -4)📝
README.md(+2 -1)📄 Description
Problem
The image inherits a fixed Node (24) from the Playwright base image (
mcr.microsoft.com/playwright:v1.58.1-noble). The frontend repo declaresengines.node: ">=25 <26"and.nvmrc: 25, so CI logs:Approach
Rather than swap one fixed Node pin for another, make the container version-agnostic so the calling repo owns both versions:
.nvmrcvia fnm. Node 25 (NODE_VERSIONbuild arg) is pre-installed as the offline fast-path default; any other.nvmrcis honored at runtime viafnm use --install-if-missing(downloaded on demand)./opt/fnmis writable bypwuserso a future bump self-heals without a rebuild.packageManagervia Corepack, installed explicitly because Node 25 no longer bundles it. Replaces the drift-pronenpm install -g pnpm.Caller impact
Because Node 25 is the baked default and
.nvmrcis25, existing frontend workflows work unchanged and the warning disappears. Thefnm useline is only needed once.nvmrcdiverges from the baked default (see README).Verification
⚠️ Not yet built locally (no Docker daemon available in the authoring environment). The
build-and-pushworkflow on this PR is the verification — confirmnode -v→ 25 andpnpm -vresolves via Corepack in the built image before merging.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.