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
- 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>
| @@ -3,6 +3,8 @@ | ||
| 3 | 3 | ARG TZ |
| 4 | 4 | ENV TZ="$TZ" |
| 5 | 5 | |
| 6 | +ARG CLAUDE_CODE_VERSION=latest | |
| 7 | + | |
| 6 | 8 | # Install basic development tools and iptables/ipset |
| 7 | 9 | RUN apt update && apt install -y less \ |
| 8 | 10 | git \ |
| @@ -67,7 +69,7 @@ | ||
| 67 | 69 | -x |
| 68 | 70 | |
| 69 | 71 | # 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} | |
| 71 | 73 | |
| 72 | 74 | |
| 73 | 75 | # Copy and set up firewall script |