Conversation
Base Docker image for running Claude Code in containers. Includes Claude Code CLI, gh, yq, and common dependencies. Designed to be used as FROM base by teams building their own runner images. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Pin Claude Code CLI to 2.1.105 via ARG and pass to installer - Add variant.mod/lock for automated version tracking via npm registry - Remove debug-only packages: vim-tiny, strace, dnsutils, iputils-ping, procps, net-tools, python3-pip - Add gpg and openssh-client for binary verification and SSH git access Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add Dockerfile.arm64 symlink for multi-arch CI builds - Switch yq install from pinned version to latest release - Change variant mod source from npm registry to GCS latest endpoint - Remove hand-written variant.lock, regenerated via mod up Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Jobs provide their own command via K8s command/args or docker run. No common init needed at this point; can be added later if required. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Not just a runner - a general-purpose base image for Claude Code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Create dedicated 'claude' user and install Claude Code CLI under /home/claude/.local/bin. System tools (yq, gh, etc.) remain in system paths, accessible to all users. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
Local verification resultsBuildSmoke testNon-root user ( dgoss test (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude-code/base Docker image with Claude Code CLI and common dependencies pre-installedFROM chatwork/claude-codefor K8s CronJobs, CI, interactive work, etc.command/argsordocker runclaude)Included tools
Test plan
docker buildsucceeds locallydocker run ... claude --versionreturns expected versiondocker run ... whoamireturnsclaude(non-root)make test(dgoss) passes — 9/9, 0 failed🤖 Generated with Claude Code