From 8a2d9d802554391df316a3c0fda27f0572a208f4 Mon Sep 17 00:00:00 2001 From: Venkata Mutyala Date: Wed, 1 Jul 2026 09:43:42 +0000 Subject: [PATCH] feat: install claude code cli in devcontainer image --- .devcontainer/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 90f78caee9..aba75839ec 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -36,6 +36,8 @@ ARG VERSION_K3D=5.8.3 ARG VERSION_HASHICORP_PACKER=1.15.1 # renovate: datasource=github-tags depName=kubernetes-sigs/krew ARG VERSION_KREW=0.5.0 +# renovate: datasource=npm depName=@anthropic-ai/claude-code +ARG VERSION_CLAUDE_CODE=2.1.197 # renovate: datasource=github-tags depName=cloudflare/cloudflared ARG VERSION_CLOUDFLARED=2026.6.1 @@ -170,6 +172,10 @@ RUN curl -L https://nixos.org/nix/install | bash -s -- --no-daemon ENV DEVBOX_USE_VERSION=0.13.0 RUN curl -fsSL https://get.jetify.com/devbox | bash -s -- -f +# Install Claude Code via the native (nodeless) installer into ~/.local/bin, which is already on PATH. +# npm isn't available at image-build time (node comes from a devcontainer feature applied afterwards). +RUN curl -fsSL https://claude.ai/install.sh | bash -s ${VERSION_CLAUDE_CODE} + RUN mkdir -p /home/vscode/.vscode-server RUN ln -s /home/vscode/.vscode-remote/extensions /home/vscode/.vscode-server/extensions