From f689b27b789c838e4de3a5e7a0bcb093b806c95c Mon Sep 17 00:00:00 2001 From: DevContainer User Date: Wed, 25 Feb 2026 19:11:36 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20revert=20Claude=20Code=20to=20npm=20inst?= =?UTF-8?q?all=20=E2=80=94=20native=20installer=20unreliable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The native binary installer (both direct GCS download and claude.ai/install.sh) has been unreliable during Docker builds. Revert to the proven npm approach. Node.js is already required for Happy Coder, so there's no extra dependency. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b2ac7a..bef9241 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,19 +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 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 - # 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" | \