Skip to content

feat(docker): integrate Claude CLI into container build#530

Open
ThuyTran07 wants to merge 1 commit intonextlevelbuilder:mainfrom
ThuyTran07:feat/claude-cli-docker
Open

feat(docker): integrate Claude CLI into container build#530
ThuyTran07 wants to merge 1 commit intonextlevelbuilder:mainfrom
ThuyTran07:feat/claude-cli-docker

Conversation

@ThuyTran07
Copy link
Copy Markdown

Summary

  • Add Claude Code CLI (@anthropic-ai/claude-code) to Docker image for both full-skills and standalone Node.js builds
  • Sync host ~/.claude.json config file into container alongside existing credentials sync
  • Simplify credential copy in entrypoint using su-exec goclaw cp
  • Add ENABLE_NODE build arg to docker-compose.yml and WITH_CLAUDE_CLI flag to Makefile
  • Set HOME=/app env var so Claude CLI finds its config directory correctly

Test plan

  • Build image with ENABLE_FULL_SKILLS=true — verify claude CLI is available in container
  • Build image with ENABLE_NODE=true only — verify claude CLI is installed
  • Run container with WITH_CLAUDE_CLI=1 make up — verify host credentials and config are mounted
  • Verify docker-entrypoint.sh syncs both .credentials.json and .claude.json on startup

🤖 Generated with Claude Code

Add Claude Code CLI (@anthropic-ai/claude-code) to Docker image, sync
host credentials and config into container, and expose ENABLE_NODE
build arg for Node.js support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant