Bun container with Node as fallback, in a Node current and a Node LTS flavour
6.1K
A Container with Bun and with Node as fallback.
You can get this container by running docker pull ideaplexus/bun.
Both the Bun and the Node version are build arguments (BUN_VERSION,
NODE_VERSION), so every Bun version is published in a Node current and a
Node LTS flavour. Within a flavour all tags point at the same digest:
bun:latest == bun:1.4 == bun:1.4-node-latest == bun:1.4-node-26
bun:lts == bun:1.4-node-lts == bun:1.4-node-24
| Tag | Bun | Node | Moves when |
|---|---|---|---|
latest | newest | current | a new Bun or Node release |
<bun> | <bun> | current | a new Node release |
<bun>-node-latest | <bun> | current | a new Node release |
<bun>-node-<major> | <bun> | <major> | a new Node <major> patch |
lts | newest | LTS | a new Bun or Node release |
<bun>-node-lts | <bun> | LTS | a new Node LTS release |
The unsuffixed tags track the current Node line. Bun ships its own Node
compatibility layer (Bun 1.4 reports process.version as v26.x) and the bun
binary has no link-time dependency on Node, so following Node current keeps
bun and node on the same semantics.
Use the lts tags if you rely on native modules whose prebuilds lag behind new
Node majors. Pin <bun>-node-<major> if you need a Node major that will not
move under you.
Nothing in this repository hardcodes a Node major. The docker:tag job (running
crane from ideaplexus/toolkit) reads ENV NODE_VERSION back out of the image
that was just pushed -- the official node image records its exact version there,
and the Dockerfile deliberately leaves that variable untouched -- and derives
-node-<major> from it. The alias therefore cannot disagree with the image
content, and a new Node major starts being published on the next pipeline run
without any change here.
make build does the same locally via docker image inspect.
make build # Bun 1.4 with Node current
make build NODE_VERSION=lts # Bun 1.4 with Node LTS
make build NODE_VERSION=26 # pin a Node major
make all # lint + both flavours
Content type
Image
Digest
sha256:06c5f1ddb…
Size
525.6 MB
Last updated
3 days ago
docker pull ideaplexus/bun