From 46ca39c463e18644bafef5b275895f5fbb9c44b2 Mon Sep 17 00:00:00 2001 From: Kowsik Perumalla Date: Sun, 22 Jun 2025 21:32:37 +0530 Subject: [PATCH 1/3] fix: pin Claude version in Dockerfile to avoid stale builds --- .devcontainer/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 04fffd16..2a51cae8 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -67,7 +67,8 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/ -x # Install Claude -RUN npm install -g @anthropic-ai/claude-code +RUN npm install -g @anthropic-ai/claude-code@1.0.31 + # Copy and set up firewall script COPY init-firewall.sh /usr/local/bin/ From 66ce6738830ac68cf9fd7333bfb919b368a5b9c9 Mon Sep 17 00:00:00 2001 From: Kurt Carpenter Date: Mon, 28 Jul 2025 16:09:53 -0700 Subject: [PATCH 2/3] feat: Add CLAUDE_CODE_VERSION arg to devcontainer Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add ARG CLAUDE_CODE_VERSION with default value of "latest" - Update npm install command to use the version variable - Allows overriding Claude Code version during build 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .devcontainer/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2a51cae8..a9b6d055 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,6 +3,8 @@ FROM node:20 ARG TZ ENV TZ="$TZ" +ARG CLAUDE_CODE_VERSION=latest + # Install basic development tools and iptables/ipset RUN apt update && apt install -y less \ git \ @@ -67,7 +69,7 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/ -x # Install Claude -RUN npm install -g @anthropic-ai/claude-code@1.0.31 +RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION} # Copy and set up firewall script From 6c7836e02fb28791f496cc01f83017b9fcecf663 Mon Sep 17 00:00:00 2001 From: Kurt Carpenter Date: Mon, 28 Jul 2025 17:42:35 -0700 Subject: [PATCH 3/3] feat: Add CLAUDE_CODE_VERSION build arg to devcontainer.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add CLAUDE_CODE_VERSION with default value of "latest" as a build argument - Allows overriding Claude Code version during devcontainer build 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 58513062..c9ffd31e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,8 @@ "build": { "dockerfile": "Dockerfile", "args": { - "TZ": "${localEnv:TZ:America/Los_Angeles}" + "TZ": "${localEnv:TZ:America/Los_Angeles}", + "CLAUDE_CODE_VERSION": "latest" } }, "runArgs": [