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
Fix: Allow overriding Claude Code version in Dockerfile
| @@ -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-get update && apt-get install -y --no-install-recommends \ |
| 8 | 10 | less \ |
| @@ -77,8 +79,9 @@ | ||
| 77 | 79 | -x |
| 78 | 80 | |
| 79 | 81 | # Install Claude |
| 80 | -RUN npm install -g @anthropic-ai/claude-code | |
| 82 | +RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION} | |
| 81 | 83 | |
| 84 | + | |
| 82 | 85 | # Copy and set up firewall script |
| 83 | 86 | COPY init-firewall.sh /usr/local/bin/ |
| 84 | 87 | USER root |
| @@ -4,6 +4,7 @@ | ||
| 4 | 4 | "dockerfile": "Dockerfile", |
| 5 | 5 | "args": { |
| 6 | 6 | "TZ": "${localEnv:TZ:America/Los_Angeles}", |
| 7 | + "CLAUDE_CODE_VERSION": "latest", | |
| 7 | 8 | "GIT_DELTA_VERSION": "0.18.2", |
| 8 | 9 | "ZSH_IN_DOCKER_VERSION": "1.2.0" |
| 9 | 10 | } |