From e26c0515e6659b2002ee3218a0baf8cc9b521722 Mon Sep 17 00:00:00 2001 From: Aleks Petrov Date: Wed, 29 Apr 2026 22:34:40 +0200 Subject: [PATCH] fix(docker): pin claude-code to 2.1.123 + use NodeSource Node 20 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 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d13917b9..13b4f345 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,9 +48,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ > /etc/apt/sources.list.d/github-cli.list \ && apt-get update && apt-get install -y --no-install-recommends \ gh \ - nodejs \ - npm \ - && npm install -g @anthropic-ai/claude-code \ + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y --no-install-recommends nodejs \ + && npm install -g @anthropic-ai/claude-code@2.1.123 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*