Problem
Docker image builds are slow due to installing extensive development dependencies in the Dockerfile.
Current State
Heavy dependencies installed (Dockerfile:92-117):
- Language runtimes: Python 3.12, Node.js 22, Go 1.22, Rust
- CLI tools: gh, aws, delta, claude, claude-trace
- Build tools: make, cmake, gcc, g++, clang
- Utilities: ripgrep, fzf, bat, eza, neovim
Impact:
- Slow CI/CD builds in GitHub Actions
- Long pull times for users
- Large image size (~2GB+)
Solution Options
Option 1: Multi-stage builds
Use builder stage for compilation, runtime stage for essentials only.
Option 2: Runtime package installation
Environment-driven installation via CLAUDE_INSTALL_PACKAGES env var.
Option 3: Layered image variants
- Base image: claude-code-yolo:base (minimal)
- Full image: claude-code-yolo:full (current)
- Custom: claude-code-yolo:custom (user-defined)
Priority
High - affects developer experience and CI performance.
Related
- DEV-LOGS.md mentions this as enhancement opportunity
- Current approach installs everything regardless of user needs
Problem
Docker image builds are slow due to installing extensive development dependencies in the Dockerfile.
Current State
Heavy dependencies installed (Dockerfile:92-117):
Impact:
Solution Options
Option 1: Multi-stage builds
Use builder stage for compilation, runtime stage for essentials only.
Option 2: Runtime package installation
Environment-driven installation via CLAUDE_INSTALL_PACKAGES env var.
Option 3: Layered image variants
Priority
High - affects developer experience and CI performance.
Related