Minimal Docker image containing the Claude CLI, built on debian:bookworm-slim.
Primarily intended as a build-time base image — use COPY --from= to grab the Claude binary into your own images.
docker pull ghcr.io/ablack94/docker-claude:stableCopy the Claude CLI binary into your own Dockerfile:
FROM ghcr.io/ablack94/docker-claude:stable AS claude
FROM debian:bookworm-slim
COPY --from=claude /usr/local/bin/claude /usr/local/bin/claude
# ... your application setupdocker run --rm -it ghcr.io/ablack94/docker-claude:stable --help| Tag | Description |
|---|---|
stable |
Latest build from main branch (default) |
x.y.z |
Pinned to a specific Claude CLI version (e.g. 1.2.3) |
x.y |
Latest patch for a given minor version |
x |
Latest minor/patch for a given major version |
- Installs the Claude CLI via the official
claude.ai/install.shbootstrap script - Binary is symlinked to
/usr/local/bin/claude - Build provenance attestations are generated for supply chain security
git clone https://github.com/ablack94/docker-claude.git
cd docker-claude
docker build -t docker-claude .To build a specific version:
docker build --build-arg CLAUDE_VERSION=1.2.3 -t docker-claude:1.2.3 .MIT