Skip to content

fix: slim runtime#22

Merged
gabemeola merged 12 commits into
mainfrom
feature/slim-runtime
Jul 2, 2026
Merged

fix: slim runtime#22
gabemeola merged 12 commits into
mainfrom
feature/slim-runtime

Conversation

@gabemeola

Copy link
Copy Markdown
Member

No description provided.

gabemeola and others added 12 commits July 2, 2026 17:51
Restructure from three-stage to four-stage build:
  runtime   - minimal apt (no compiler toolchain)
  build-env - runtime + build-essential/pkg-config/xz-utils
  builder   - build-env + toolchains (unchanged)
  final     - runtime + copied artifacts from builder

Saves ~200 MB from the final image. Users who need native
addon compilation can sudo apt install build-essential.
- git clone --filter=blob:none for Homebrew saves ~70 MB
  without breaking brew update (partial clone fetches blobs on demand)
- Remove /usr/share/doc, /usr/share/man, /usr/share/locale,
  /var/log/*, and /var/cache/debconf/*.dat from apt install layer
  to trim the 100 MB apt layer
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Docker image size comparison

Image Size
Baseline (main) 956MB
This PR 583MB
Difference 356MB

@gabemeola gabemeola merged commit aa45a62 into main Jul 2, 2026
1 check passed
@gabemeola gabemeola deleted the feature/slim-runtime branch July 2, 2026 18:34
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