Skip to content

GH-2436: fix(docker): pin claude-code to 2.1.123 + use NodeSource Node 20#2439

Merged
alekspetrov merged 1 commit intomainfrom
pilot/GH-2436
Apr 29, 2026
Merged

GH-2436: fix(docker): pin claude-code to 2.1.123 + use NodeSource Node 20#2439
alekspetrov merged 1 commit intomainfrom
pilot/GH-2436

Conversation

@alekspetrov
Copy link
Copy Markdown
Collaborator

Summary

Automated PR created by Pilot for task GH-2436.

Closes #2436

Changes

GitHub Issue #2436: fix(docker): pin claude-code to 2.1.123 + use NodeSource Node 20

v2.101.0 Docker build failed (run 24992556558) because Dockerfile:51 installs nodejs from Ubuntu jammy apt (Node v12.22.9), but @anthropic-ai/claude-code requires Node ≥18. Optional chaining in install.cjs throws SyntaxError: Unexpected token '.' on Node 12.

Two coupled changes in Dockerfile

1. Replace apt-installed nodejs with NodeSource Node 20 LTS

  • Drop nodejs and npm from the existing apt-get install block (line 51-52)
  • Before npm install -g, add NodeSource setup:
    curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
    apt-get install -y --no-install-recommends nodejs
    
    (NodeSource bundles a current npm, no separate npm package needed)

2. Pin claude-code version

  • Change line 53: npm install -g @anthropic-ai/claude-code
  • To: npm install -g @anthropic-ai/[email protected]

Verification

  • docker build -t pilot:test . succeeds locally
  • docker run --rm pilot:test claude --version prints 2.1.123 (Claude Code)
  • After merge, retag or re-run the Docker workflow to publish the v2.101.x image

Out of scope

  • Doc snippets under docs/content/** (user-facing examples, leave unpinned)
  • Helm chart (no Node baked in)

Ubuntu jammy ships Node 12.22.9, which fails to parse optional chaining in
@anthropic-ai/claude-code's install.cjs. Switch to NodeSource Node 20 LTS
(bundles current npm) and pin claude-code to 2.1.123 for reproducible builds.

Closes GH-2436
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alekspetrov alekspetrov merged commit 67f9362 into main Apr 29, 2026
4 checks passed
@alekspetrov alekspetrov deleted the pilot/GH-2436 branch April 29, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(docker): pin claude-code to 2.1.123 + use NodeSource Node 20

2 participants