panascais/node| Tag: | Command: | Node Version: | Supported: | Labels: |
|---|---|---|---|---|
lts | docker pull panascais/node:lts | v26.x.x | ✓ | |
latest | docker pull panascais/node | v26.x.x | ✓ | |
26 | docker pull panascais/node:26 | v26.x.x | ✓ | |
25 | docker pull panascais/node:25 | v25.x.x | × | |
24 | docker pull panascais/node:24 | v24.x.x | ✓ | |
23 | docker pull panascais/node:23 | v23.x.x | × | |
22 | docker pull panascais/node:22 | v22.x.x | ✓ | |
21 | docker pull panascais/node:21 | v21.x.x | × | |
20 | docker pull panascais/node:20 | v20.x.x | ✓ | |
19 | docker pull panascais/node:19 | v19.x.x | × | |
18 | docker pull panascais/node:18 | v18.x.x | × | |
17 | docker pull panascais/node:17 | v17.x.x | × | |
16 | docker pull panascais/node:16 | v16.x.x | × | |
15 | docker pull panascais/node:15 | v15.x.x | × | |
14 | docker pull panascais/node:14 | v14.x.x | × | |
13 | docker pull panascais/node:13 | v13.x.x | × | |
12 | docker pull panascais/node:12 | v12.x.x | × | |
11 | docker pull panascais/node:11 | v11.x.x | × | |
10 | docker pull panascais/node:10 | v10.x.x | × | |
9 | docker pull panascais/node:9 | v9.x.x | × | |
8 | docker pull panascais/node:8 | v8.x.x | × | |
7 | docker pull panascais/node:7 | v7.x.x | × | |
6 | docker pull panascais/node:6 | v6.x.x | × | |
4 | docker pull panascais/node:4 | v4.x.x | × |
Every line is built on Alpine and on Debian (debian:trixie-slim). The Alpine images own the unsuffixed tags, as before, and also carry an -alpine suffix; the Debian images only carry a -debian suffix. latest becomes the bare variant name and latest-<variant>:
| Alpine | Debian |
|---|---|
26, 26-alpine | 26-debian |
26.13, 26.13-alpine | 26.13-debian |
26.13.1, 26.13.1-alpine | 26.13.1-debian |
latest, alpine, latest-alpine | debian, latest-debian |
lts, lts-alpine | lts-debian |
Every numeric directory is a line named after its node major version, with a Dockerfile.alpine and a Dockerfile.debian sharing the line's build context. A build target is <line>-<variant>. configuration/ pins the node release and pnpm major per line, the upstream node:<version>-slim and node:<version>-alpine digests per target, and the Debian and Alpine base images; aliases.json maps latest and lts onto a line.
Build, load and smoke test node 22 for the local platform:
go run ./scripts build 22
go run ./scripts build 22-debian
A bare line builds the Alpine variant. The images are tagged as listed under Variants (ghcr.io/panascais-docker/node/node:22, 22-alpine, 22-debian and so on, plus the Docker Hub and Quay names) in the local image store. ./scripts/build-all-parallel.sh [target...] builds every target at once and logs each build to $TMPDIR/node-builds.
Refresh the pins from nodejs.org and Docker Hub:
go run ./scripts update
GitHub Actions builds and publishes with the shared toolkit, GHCR first:
plan compares each target's fingerprint with the annotation on the image published to GHCR and lists the stale targets. A manual or weekly scheduled run of main forces every target, so the images pick up fixes of their unpinned Alpine and Debian packages.build runs the whole matrix at once and pushes each stale target by digest per architecture to GHCR only. It still signs in to every registry, so base image pulls are authenticated.publish tags the digests as multi-platform images on GHCR. ci-node starts right after it.mirror copies every tag from GHCR to Docker Hub and Quay by digest, so the images are identical on all three registries. It only reads from GHCR and skips a tag whose digest already matches, which keeps it clear of the Docker Hub pull quota and repairs a previous mirror on the next run.Registry requests that fail with a transient error, such as a 429 burst, a 5xx response or a timeout, are retried inside the job. Every build pulls Docker Hub images, BuildKit included, through mirror.gcr.io with the toolkit's setup-builder action, and falls back to Docker Hub only when the mirror has not cached an image yet.
BuildKit cache mounts reuse downloaded packages between builds.
Both stages of Dockerfile.debian run on DEBIAN_IMAGE and mount /var/cache/apt and /var/lib/apt/lists. The builder copies /usr/local out of the upstream node:<version>-slim image instead of building on it, so old lines whose upstream Debian release has been archived still install packages from current trixie. The packager moves Debian's docker-clean apt hook aside only for its install, so images built on top keep the stock apt behavior:
RUN --mount=type=cache,id=node-apt-cache-${TARGETARCH},sharing=locked,target=/var/cache/apt \
--mount=type=cache,id=node-apt-lists-${TARGETARCH},sharing=locked,target=/var/lib/apt/lists \
mv /etc/apt/apt.conf.d/docker-clean /etc/apt/docker-clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
...
&& mv /etc/apt/docker-clean /etc/apt/apt.conf.d/docker-clean \
Only the packager stage (ALPINE_IMAGE) of Dockerfile.alpine uses them:
RUN --mount=type=cache,id=node-apk-${TARGETARCH},sharing=locked,target=/apk/cache \
apk update --cache-dir /apk/cache \
&& apk add --cache-dir /apk/cache --cache-predownload \
...
The builder stage runs on upstream node:X-alpine, which may ship apk-tools 2.x (Alpine 3.22 or older). Flags like --cache-predownload are apk-tools 3.x only, so the builder installs its two build deps with plain apk add --no-cache binutils curl instead.
Alpine 3.23 ships apk-tools 3.x, where --update / -U means --cache-max-age 0 (always refetch). Do not use it with cache mounts on the packager stage.
Cache IDs of both variants include ${TARGETARCH} so amd64 and arm64 packages do not mix during multi-platform builds. sharing=locked avoids races when matrix jobs build in parallel.
Node 18+ images ship pnpm 12 via get.pnpm.io into /usr/local/bin/pnpm on both variants. All Node 18+ images set PNPM_HOME to /root/.local/share/pnpm and a PATH that prefers /usr/local/bin while including /root/.local/share/pnpm/bin, so the standalone CLI is not affected by store mounts in downstream builds.
This image does not cache-mount pnpm during its own build — it only downloads the standalone CLI (~few MB), so a store cache would add complexity for little gain.
Application Dockerfiles should cache installs at a separate path such as /pnpm/store, not /root/.local/share/pnpm/store. See pnpm Docker docs.
All Node 18+ images ship enableGlobalVirtualStore: false in /root/.config/pnpm/config.yaml so global installs (pnpm add -g) work with BuildKit cache mounts on the store path (see downstream ci-node).
Interested in contributing to Node? Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.
Code licensed under MIT, documentation under CC BY 3.0.
Content type
Image
Digest
sha256:7cc1f2f11…
Size
103 MB
Last updated
about 18 hours ago
docker pull panascais/node