Complete working Dockerfiles that pair Sortie with a coding agent. For the full guide — volumes, health checks, persistence, process reaping, custom agents — see How to use Sortie in Docker.
Build an agent-specific image from the repository root:
docker build -f examples/docker/claude-code.Dockerfile -t sortie-claude .
docker build -f examples/docker/codex.Dockerfile -t sortie-codex .
docker build -f examples/docker/copilot.Dockerfile -t sortie-copilot .
docker build -f examples/docker/opencode.Dockerfile -t sortie-opencode .Run it:
docker run --rm --init \
-e ANTHROPIC_API_KEY \
-v "$(pwd)/workspaces:/home/sortie/workspaces" \
-v "$(pwd)/WORKFLOW.md:/home/sortie/WORKFLOW.md:ro" \
-p 7678:7678 \
sortie-claude /home/sortie/WORKFLOW.md| File | Agent | Base image |
|---|---|---|
claude-code.Dockerfile |
Claude Code | node:24-slim |
codex.Dockerfile |
OpenAI Codex CLI | debian:bookworm-slim |
copilot.Dockerfile |
GitHub Copilot | node:24-slim |
opencode.Dockerfile |
OpenCode | node:24-slim |
Each Dockerfile follows the same pattern: copy the Sortie binary from the
distroless image (ghcr.io/sortie-ai/sortie), install the agent, create a
non-root user, and set the entrypoint to Sortie. See the Dockerfiles
themselves for the full details.