Repository navigation
build(base)!: slim base image from 1.97 GB to 1.4 GB - #140
Merged
Merged
Conversation
Drop OpenCode (185 MB), ffmpeg and its codec deps (184 MB), and the NodeSource Node.js package (230 MB). `node` is now Bun: /usr/local/bin/node is a sh wrapper that answers -v/--version (Bun's Node mode rejects them) and otherwise execs a `node` symlink to bun, since Bun enters Node mode only when argv[0] is `node`. npm/npx come from the standalone registry tarball, pinned by NPM_VERSION. Known gap: `npm init` fails under Bun (mod.require is not a function); install/run/pack/view/npx work. BREAKING CHANGE: the Coder template no longer offers the OpenCode and Start opencode apps; the opencode CLI and ffmpeg are gone from all images; NODE_MAJOR and OPENCODE_VERSION build args are removed. Co-authored-by: Tom Grozev <1491414+TomGrozev@users.noreply.github.com>
agent-007-hq
commented
Oct 16, 2026
| && ln -sf /usr/local/bin/bun /usr/local/lib/bun-node/node \ | ||
| && printf '%s\n' \ | ||
| '#!/bin/sh' \ | ||
| 'case "$1" in -v|--version) exec /usr/local/lib/bun-node/node -p process.version ;; esac' \ |
Collaborator
Author
There was a problem hiding this comment.
node is a sh wrapper so --version/-v work under Bun, which adds a tiny sh startup to every node call. Fine, or would you rather have real node back?
agent-007-hq
commented
Oct 16, 2026
agent-007-hq
commented
Oct 16, 2026
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
Base image shrinks from 1.97 GB to 1.4 GB (arm64, uncompressed). Rust and Elixir build
FROMit, so they shrink by the same amount.Bun enters Node mode only when it is run as
node. In that mode it rejects--version/-v, so the wrapper answers those itself.The Coder template loses its OpenCode and Start opencode apps. ompweb, miao and zellij are unchanged.
Reading order:
images/base/Dockerfiledocker-bake.hcl.github/workflows/pr.yml.github/workflows/release.ymlscripts/gen-readme-versions.shcoder-template/main.tfREADME.mdcoder-template/README.mdEvidence
ghcr.io/tomgrozev/devcontainer-base:latest→1.97GBAfter:
docker buildx bake base(arm64) →1.4GBSmoke run on the new image:
node --version/node -v/node -ev26.3.0/v26.3.0/ oknpm --version,npx --version,npm i -gas dev~/.local/binrunsbufferutilnpx -y @kahme247/ompweb --port 30177npx @hyperlogue/r3 --helpopencode,ffmpegtofu validateoncoder-template/Merge Danger
Door: two-way
Revert restores node, ffmpeg and OpenCode. Workspaces pick up the change on their next image pull.
Blast Radius: workspaces
npm initfails under Bun (mod.require is not a function, same on npm 12.2.0). install/run/pack/view/npx work. Node-only CLI flags that Bun lacks will also fail.pkill -f '@kahme247/ompweb'only kills thenpxparent, and the server keeps running.