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 <noreply@anthropic.com>
This commit is contained in:
DevContainer User
2026-02-25 18:42:17 +00:00
parent 69497b1ec6
commit a978b505d0
+3 -5
View File
@@ -68,11 +68,9 @@ RUN npm install -g happy-coder
# forces Docker to re-run these layers instead of serving stale cache. # forces Docker to re-run these layers instead of serving stale cache.
ARG TOOLS_CACHEBUST=0 ARG TOOLS_CACHEBUST=0
# Install Claude Code via native installer (no Node.js dependency) # Install Claude Code via official native installer (installs to ~/.local/bin/claude)
RUN CLAUDE_VERSION=$(curl -fsSL https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest) && \ RUN curl -fsSL https://claude.ai/install.sh | bash && \
echo "Installing Claude Code ${CLAUDE_VERSION}" && \ cp "$HOME/.local/bin/claude" /usr/local/bin/claude && \
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 && \
chmod +x /usr/local/bin/claude && \ chmod +x /usr/local/bin/claude && \
claude --version claude --version