Skip to content

feat: install claude code cli in devcontainer image#504

Merged
venkatamutyala merged 1 commit into
mainfrom
feat/add-claude-code
Jul 1, 2026
Merged

feat: install claude code cli in devcontainer image#504
venkatamutyala merged 1 commit into
mainfrom
feat/add-claude-code

Conversation

@venkatamutyala

Copy link
Copy Markdown
Contributor

Installs the Claude Code CLI into the devcontainer image. The image already sets CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 but never actually installed the CLI — this adds it.

What changed

.devcontainer/Dockerfile:

  • Pinned version arg with a Renovate annotation (matches every other tool in this file):
    # renovate: datasource=npm depName=@anthropic-ai/claude-code
    ARG VERSION_CLAUDE_CODE=2.1.197
  • Install step in the USER vscode section (so it lands in the vscode user's ~/.local/bin, already on PATH):
    RUN curl -fsSL https://claude.ai/install.sh | bash -s ${VERSION_CLAUDE_CODE}

Why the native installer (not npm install -g)

node/npm are provided by a devcontainer feature, which is applied after the Dockerfile builds — so npm isn't available at image-build time and npm install -g @anthropic-ai/claude-code would fail. The native (nodeless) installer downloads a standalone binary and needs no runtime. Its version arg tracks the same releases as the npm package, so Renovate's datasource=npm depName=@anthropic-ai/claude-code keeps it current.

Arch-aware (multi-arch ready)

The installer auto-detects platform (x64/arm64, and musl vs glibc), so like the cloudflared change it keeps working if this image becomes a multi-arch build. Verified the pinned version's manifest and linux-x64 binary both resolve (HTTP 200).

🤖 Generated with Claude Code

@venkatamutyala
venkatamutyala merged commit bbb22df into main Jul 1, 2026
2 checks passed
@venkatamutyala
venkatamutyala deleted the feat/add-claude-code branch July 1, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant