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

feat: Add CLAUDE_CODE_VERSION arg to devcontainer DockerfileBrowse files
- 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 <noreply@anthropic.com>
Kurt Carpenter authored on Jul 28, 2025 parent 46ca39c · commit 66ce6738830a
1 changed file+3 -1compared with 46ca39c
M.devcontainer/Dockerfile
@@ -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 update && apt install -y less \
810 git \
@@ -67,7 +69,7 @@
6769 -x
6870
6971 # Install Claude
70-RUN npm install -g @anthropic-ai/claude-code@1.0.31
72+RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}
7173
7274
7375 # Copy and set up firewall script