From a978b505d03c6a8bcaaf92ef7fd44184a7217f9e Mon Sep 17 00:00:00 2001 From: DevContainer User Date: Wed, 25 Feb 2026 18:42:17 +0000 Subject: [PATCH] fix: use official Claude Code installer instead of raw GCS bucket URL The previous native installer approach used a direct GCS bucket download that was fragile and failing during builds. Switch to the official install script (claude.ai/install.sh) which handles version discovery, platform detection, and checksum verification properly. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 28f73e9..2b2ac7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,11 +68,9 @@ RUN npm install -g happy-coder # forces Docker to re-run these layers instead of serving stale cache. ARG TOOLS_CACHEBUST=0 -# Install Claude Code via native installer (no Node.js dependency) -RUN CLAUDE_VERSION=$(curl -fsSL https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest) && \ - echo "Installing Claude Code ${CLAUDE_VERSION}" && \ - curl -fsSL "https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/${CLAUDE_VERSION}/linux-x64/claude" \ - -o /usr/local/bin/claude && \ +# Install Claude Code via official native installer (installs to ~/.local/bin/claude) +RUN curl -fsSL https://claude.ai/install.sh | bash && \ + cp "$HOME/.local/bin/claude" /usr/local/bin/claude && \ chmod +x /usr/local/bin/claude && \ claude --version