Docker image for the Anthropic Claude Code CLI, published to ghcr.io.
Rebuilt weekly to track new releases automatically.
docker pull ghcr.io/zeroklaw/claude-code:latest# Interactive
docker run -it --rm \
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
ghcr.io/zeroklaw/claude-code:latest
# One-shot command
docker run --rm \
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
-v $(pwd):/workspace -w /workspace \
ghcr.io/zeroklaw/claude-code:latest \
"explain this codebase"image: ghcr.io/zeroklaw/claude-code:latest
variables:
ANTHROPIC_API_KEY: $ANTHROPIC_API_KEY # set in CI/CD settings
my-job:
script:
- claude --versionUse the SHA-tagged image for reproducible builds:
docker pull ghcr.io/zeroklaw/claude-code:a1b2c3dOr build with a specific npm version:
docker build --build-arg CLAUDE_CODE_VERSION=1.2.3 -t claude-code .| Tag | Description |
|---|---|
latest |
Most recent build from main |
<sha> |
Immutable short commit SHA tag |