Skip to content

Release performance: Docker image build too slow due to large dev dependencies #19

Description

@lroolle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions