spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Merge pull request #2448 from kowsik11/fix/pin-claude-versionBrowse files
Fix: Allow overriding Claude Code version in Dockerfile
ant-kurt authored on Jul 29, 2025 · GitHub committed on Jul 29, 2025 parents 6f6fc43 + 10c1ec5 · commit 8f0379c69863
2 changed files+5 -1compared with 6f6fc43
M.devcontainer/Dockerfile
M.devcontainer/devcontainer.json
@@ -3,6 +3,8 @@
33 ARG TZ
44 ENV TZ="$TZ"
55
6+ARG CLAUDE_CODE_VERSION=latest
7+
68 # Install basic development tools and iptables/ipset
79 RUN apt-get update && apt-get install -y --no-install-recommends \
810 less \
@@ -77,8 +79,9 @@
7779 -x
7880
7981 # Install Claude
80-RUN npm install -g @anthropic-ai/claude-code
82+RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}
8183
84+
8285 # Copy and set up firewall script
8386 COPY init-firewall.sh /usr/local/bin/
8487 USER root
@@ -4,6 +4,7 @@
44 "dockerfile": "Dockerfile",
55 "args": {
66 "TZ": "${localEnv:TZ:America/Los_Angeles}",
7+ "CLAUDE_CODE_VERSION": "latest",
78 "GIT_DELTA_VERSION": "0.18.2",
89 "ZSH_IN_DOCKER_VERSION": "1.2.0"
910 }