From 219af987aea414d589b0f6d3dbd70aa1f73d5860 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Wed, 25 Feb 2026 15:03:47 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20revert=20Claude=20Code=20back=20to=20npm?= =?UTF-8?q?=20install=20=E2=80=94=20binary=20download=20breaks=20container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The direct GCS binary download approach has been unreliable across multiple attempts. Revert to the proven npm install method. Node.js is already required for Happy Coder so there is no extra dependency. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index f26016f..bef9241 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,25 +61,13 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ apt-get install -y nodejs && \ rm -rf /var/lib/apt/lists/* -# Install Happy Coder globally via npm -RUN npm install -g happy-coder +# Install Happy Coder and Claude Code globally via npm +RUN npm install -g happy-coder @anthropic-ai/claude-code # Cache-bust: tools below fetch "latest" at build time — a changing ARG # forces Docker to re-run these layers instead of serving stale cache. ARG TOOLS_CACHEBUST=0 -# Install Claude Code native binary (direct download with checksum verification) -RUN CLAUDE_GCS="https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases" && \ - CLAUDE_VERSION=$(curl -fsSL "$CLAUDE_GCS/latest") && \ - echo "Installing Claude Code ${CLAUDE_VERSION}..." && \ - curl -fsSL "$CLAUDE_GCS/$CLAUDE_VERSION/manifest.json" -o /tmp/manifest.json && \ - CHECKSUM=$(jq -r '.platforms["linux-x64"].checksum' /tmp/manifest.json) && \ - curl -fsSL -o /usr/local/bin/claude "$CLAUDE_GCS/$CLAUDE_VERSION/linux-x64/claude" && \ - echo "$CHECKSUM /usr/local/bin/claude" | sha256sum -c && \ - chmod +x /usr/local/bin/claude && \ - rm /tmp/manifest.json && \ - claude --version - # Install OpenCode AI coding agent RUN OPENCODE_VERSION=$(curl -sL https://api.github.com/repos/opencode-ai/opencode/releases/latest | jq -r '.tag_name') && \ curl -fsSL "https://github.com/opencode-ai/opencode/releases/download/${OPENCODE_VERSION}/opencode-linux-x86_64.tar.gz" | \