HUB
Sign inSign up
node logo

panascais/node

By panascais

•Updated about 18 hours ago

Panascais Node Image

Image
0

100K+

panascais/node repository overview

⁠panascais/node

GitHub Workflow Status Docker Pulls Docker Stars Docker Image Size License

Tag:Command:Node Version:Supported:Labels:
ltsdocker pull panascais/node:ltsv26.x.x✓Docker Image Size
latestdocker pull panascais/nodev26.x.x✓Docker Image Size
26docker pull panascais/node:26v26.x.x✓Docker Image Size
25docker pull panascais/node:25v25.x.x×Docker Image Size
24docker pull panascais/node:24v24.x.x✓Docker Image Size
23docker pull panascais/node:23v23.x.x×Docker Image Size
22docker pull panascais/node:22v22.x.x✓Docker Image Size
21docker pull panascais/node:21v21.x.x×Docker Image Size
20docker pull panascais/node:20v20.x.x✓Docker Image Size
19docker pull panascais/node:19v19.x.x×Docker Image Size
18docker pull panascais/node:18v18.x.x×Docker Image Size
17docker pull panascais/node:17v17.x.x×Docker Image Size
16docker pull panascais/node:16v16.x.x×Docker Image Size
15docker pull panascais/node:15v15.x.x×Docker Image Size
14docker pull panascais/node:14v14.x.x×Docker Image Size
13docker pull panascais/node:13v13.x.x×Docker Image Size
12docker pull panascais/node:12v12.x.x×Docker Image Size
11docker pull panascais/node:11v11.x.x×Docker Image Size
10docker pull panascais/node:10v10.x.x×Docker Image Size
9docker pull panascais/node:9v9.x.x×Docker Image Size
8docker pull panascais/node:8v8.x.x×Docker Image Size
7docker pull panascais/node:7v7.x.x×Docker Image Size
6docker pull panascais/node:6v6.x.x×Docker Image Size
4docker pull panascais/node:4v4.x.x×Docker Image Size

⁠Variants

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>:

AlpineDebian
26, 26-alpine26-debian
26.13, 26.13-alpine26.13-debian
26.13.1, 26.13.1-alpine26.13.1-debian
latest, alpine, latest-alpinedebian, latest-debian
lts, lts-alpinelts-debian

⁠Build

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

⁠Publish

GitHub Actions builds and publishes with the shared toolkit⁠, GHCR first:

  1. 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.
  2. 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.
  3. publish tags the digests as multi-platform images on GHCR. ci-node starts right after it.
  4. 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.

⁠Docker cache mounts

BuildKit cache mounts reuse downloaded packages between builds.

⁠apt (Debian)

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 \
⁠apk (Alpine)

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.

⁠pnpm

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).

⁠Contributors

⁠Contributing

Interested in contributing to Node? Contributions are welcome, and are accepted via pull requests. Please review these guidelines⁠ before submitting any pull requests.

⁠License

Code licensed under MIT⁠, documentation under CC BY 3.0⁠.

Tag summary

Content type

Image

Digest

sha256:7cc1f2f11…

Size

103 MB

Last updated

about 18 hours ago

docker pull panascais/node