Distroless base images·Non-root·Signed·Free & open source

The smallest attack surface
you can ship.

Distroless, non-root base images for Java, Python, Node, PHP, Go and Rust — plus nginx, Redis, PostgreSQL, MySQL, RabbitMQ and Memcached. musl by default for a smaller libc; glibc one tag away. No shell¹, no package manager, no root — almost nothing for an attacker to land on, and far less to patch. Built with Nix, signed with cosign, and shipped with an SBOM and SLSA provenance.

Dockerfile · varde-go
# build your static binary where the toolchain lives…
FROM golang:1-bookworm AS build
COPY . .
RUN CGO_ENABLED=0 go build -o /out/app .

# …then ship just the binary: non-root, no shell, no OS
FROM ghcr.io/mathiasror/varde-go:latest
COPY --from=build /out/app /app/app
  • no shell¹
  • non-root
  • musl by default
  • SBOM per image
  • cosign-signed
  • free & open

¹ Production images ship no shell. One exception: postgres carries one static ash, which initdb requires.

The catalog

Runtimes, services, any binary.

Each image is just the runtime — or, for a compiled binary, just its libc: non-root, no shell (bar postgres's static ash for initdb), musl by default. A scannable SBOM per image, multi-arch, on GitHub Container Registry.

  • varde-jre

    • 17*
    • 21
    • 25

    JVM apps (Java / Kotlin). Prebuilt headless Temurin JRE — drop a fat JAR at /app/app.jar. *17 is glibc-only.

    FROM ghcr.io/mathiasror/varde-jre:21
  • varde-python

    • 3.11
    • 3.12
    • 3.13

    Python apps. The CPython interpreter only — no pip, no shell. COPY your resolved deps in.

    FROM ghcr.io/mathiasror/varde-python:3.13
  • varde-node

    • 22
    • 24

    Node.js apps. The node runtime only — no npm. COPY node_modules plus your code.

    FROM ghcr.io/mathiasror/varde-node:24
  • varde-php

    • 8.3
    • 8.4
    • 8.5

    PHP apps. The interpreter with the stock extension set plus php-fpm — no composer, no pecl. COPY vendor/ plus your code.

    FROM ghcr.io/mathiasror/varde-php:8.5
  • varde-nginx

    • latest

    Static sites, non-root on :8080. COPY site/ /app/ and serve — no root, no shell.

    FROM ghcr.io/mathiasror/varde-nginx:latest
  • varde-redis

    • latest

    The Redis server, distroless and non-root. Run as-is for loopback / docker exec clients (protected mode), or drop in a redis.conf / CMD ["--requirepass", "…"] to serve remote clients.

    FROM ghcr.io/mathiasror/varde-redis:latest
  • varde-postgres

    • 16
    • 17
    • 18

    The PostgreSQL server, distroless and non-root. One explicit initdb against a volume at /app, then it runs as-is. Ships a minimal /bin/sh (ash) — initdb requires one; the sole exception to no-shell.

    FROM ghcr.io/mathiasror/varde-postgres:18
  • varde-mysql

    • 8.4

    MySQL 8.4 LTS, distroless and non-root. Native no-shell initialization — one --initialize-insecure run, then serve. glibc-only.

    FROM ghcr.io/mathiasror/varde-mysql:8.4
  • varde-rabbitmq

    • latest

    RabbitMQ with a shell-free Erlang boot — the VM is exec'd directly; epmd and the escript CLI work without a single script.

    FROM ghcr.io/mathiasror/varde-rabbitmq:latest
  • varde-memcached

    • latest

    The Memcached server, distroless and non-root. Run as-is or pass flags via CMD — no config file needed.

    FROM ghcr.io/mathiasror/varde-memcached:latest
  • varde-static · glibc · musl

    • latest

    Any compiled binary at /app/app: static (Go CGO_ENABLED=0), glibc (a default cargo build), or musl. varde-go & varde-rust alias the first two.

    FROM ghcr.io/mathiasror/varde-static:latest
  • Every image

    • Runs as 1000:1000, non-root
    • musl by default — -glibc tag to opt in
    • Multi-arch amd64 + arm64 (:21-musl-arm64)
    • CycloneDX SBOM with NVD CPEs — scan with grype
    • Signed with cosign, plus SLSA provenance & OpenVEX
    • Rebuilt weekly so CVE fixes flow through

Why varde

Less in the image,
less to defend.

A varde — the Norwegian cairn, a stack of stones that marks a trail — carries only the stones that mark the way. These images carry only what your app needs to run.

  • Distroless

    Production images ship no shell, no package manager, no coreutils. Just the runtime — nothing for an attacker to pivot through. The one exception: postgres's static ash, which initdb requires.

  • Non-root by default

    Every container runs as uid/gid 1000:1000 in a /app it owns. Nothing runs as root unless you explicitly override the user.

  • Multi-arch

    Native linux/amd64 and linux/arm64, selectable by tag (e.g. :21-musl-arm64). Same image, your architecture.

  • Scannable by design

    A distroless image has no OS package DB — so a Nix-closure CycloneDX SBOM covers system packages and the runtime. Scan it with grype.

  • Built with Nix

    Reproducible builds from a committed lockfile. A weekly lock-bump commit flows CVE fixes through — every image traces to a commit.

  • Drop your app in

    Bring one real artifact — a fat JAR, a binary, code plus its deps — and add two lines of Dockerfile. The entrypoint runs it directly.

Usage

Two lines on top of your build.

Build your artifact in a stage that has the tooling, then COPY it onto varde. There's no shell, so the entrypoint runs your app directly.

Dockerfile · Spring Boot / fat JAR
# build stage: Gradle bootJar -> one self-contained fat jar
FROM gradle:8.14-jdk21 AS build
WORKDIR /home/gradle/src
COPY --chown=gradle:gradle . .
RUN gradle bootJar --no-daemon

FROM ghcr.io/mathiasror/varde-jre:21
# base ENTRYPOINT is /runtime/bin/java, CMD ["-jar", "/app/app.jar"] — just place the jar
# (override CMD to add JVM flags; they must come before -jar)
COPY --from=build /home/gradle/src/build/libs/app.jar /app/app.jar

Built with Nix

Every stone accounted for.

Nix builds each image from an exact dependency closure. That same closure becomes the SBOM — so what grype scans is precisely what's in the image, down to glibc and zlib.

  1. Reproducible closure

    Nix pins the exact runtime and system libraries — and only those.

  2. Exact CycloneDX SBOM

    syft reads the closure out of the image into a CycloneDX SBOM with CPEs.

  3. grype scans it all

    System packages and runtime are scannable — not just your app deps.

Supply chain

Signed, attested,
verifiable.

Every image is keyless-signed with Sigstore cosign from one identity: the repo's build.yml workflow on main. No long-lived keys, and every signature is in the public Rekor transparency log. A tag only moves to a digest after its signature and attestations are attached and verified.

On every per-arch image

  • cosign signature — on the per-arch images and the multi-arch lists, so verifying by tag works
  • CycloneDX SBOM with exact NVD identities, attached to the image
  • OpenVEX — CVEs fixed by nixpkgs patches or reviewed as not affecting the image, with evidence
  • Vulnerability-scan attestation — CI's signed grype result, as a point-in-time snapshot
  • SLSA build provenance — builder, source commit, invocation
shell · verify, then scan
# the signature: exactly this workflow, on main
cosign verify \
  --certificate-identity https://github.com/mathiasror/varde/.github/workflows/build.yml@refs/heads/main \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  ghcr.io/mathiasror/varde-jre:21

# then scan it: grype reads the Nix store paths
grype ghcr.io/mathiasror/varde-jre:21

The SBOM, OpenVEX, scan and provenance attestations live on the per-arch digests. The supply-chain section of the README shows how to verify and extract each one, and how to apply the VEX when you scan.

Compared

varde vs distroless, Chainguard and Alpine.

All four are common starting points for a small container image. Here's where they differ, so you can pick the one that fits.

How varde compares with Google distroless, Chainguard Images and Alpine
Property varde Google distroless Chainguard Images Alpine
Shell None (Postgres alone ships a static ash for initdb) None (busybox in :debug tags) None in runtime images (-dev variants add one) busybox ash
Package manager None, enforced by a build-time closure check None None in runtime images (apk in -dev) apk
Default user Non-root, 1000:1000 root (:nonroot tags available) Non-root root
Built from nixpkgs, with Nix, from a committed lockfile Debian packages Wolfi packages, with apko Alpine packages
libc musl by default, glibc via a -glibc tag glibc (none in static) glibc musl
Service images nginx, Redis, PostgreSQL, MySQL, RabbitMQ, Memcached No: language runtimes and base layers only Yes, a large catalog Install them with apk
Seen by Trivy / Docker Scout No: they don't read Nix. Scan with grype Yes Yes Yes
Access Free, anonymous docker pull, Apache-2.0 build Free, open source Commercial; free tier is a few images, :latest tags only Free, open source

The third-party columns summarise each project's public documentation as of October 2026 and can change, so check the project before you decide.

Free & open

No paywall. No token.
No “contact sales.”

A hardened base image shouldn't come with a sales call, a personal access token, and a per-seat licence. varde is public and yours: read the entire Nix build, scan the SBOM, and docker pull without an account.

varde

Free & open source

  • Free forever — every image, every tag, every arch
  • Anonymous docker pull — no token, no login
  • Run it across your org — no per-seat or per-image licence
  • The whole build is public — audit the flake yourself
  • SBOMs included for everyone, never an upsell

Other “hardened” images

Free* terms apply

  • The catalog that matters sits behind paid tiers or “contact sales”
  • Pulls gated by a personal access token or a paid registry
  • Using it across a team means per-seat licensing
  • Closed pipeline — “trust us, it's minimal”
  • SBOMs, pinned versions, FIPS: enterprise add-ons

FAQ

Questions, answered.

What is a distroless container image?

An image that carries only what an application needs at runtime, such as the language runtime and the libraries it links against, and none of a Linux distribution's userland: no shell, no package manager, no coreutils, no busybox. With less in the image there is less for an attacker to use and less to patch.

How is varde different from Google's distroless images?

Neither ships a shell or a package manager in its production images (varde's one exception is PostgreSQL's static ash, which initdb requires). varde builds every image with Nix instead of from Debian packages, defaults to musl with glibc one tag away, runs as non-root (1000:1000) by default, and also covers services: nginx, Redis, PostgreSQL, MySQL, RabbitMQ and Memcached. See the full comparison.

Why does Trivy report zero vulnerabilities on a varde image?

That is a false negative. Trivy, Docker Scout and Snyk find packages through a distro package database or language package URLs, and none of them understands Nix, so they see no packages at all. Use grype, which reads the Nix store paths in the image and matches them against NVD by CPE, or load the attested CycloneDX SBOM into Dependency-Track.

How do I verify that a varde image is authentic?

Every image is keyless-signed with cosign using the GitHub Actions OIDC identity of the repository's build.yml workflow on main, and the signatures are recorded in the public Rekor transparency log. Run cosign verify with that certificate identity and issuer, as shown in the verification example. The per-arch digests also carry CycloneDX SBOM, OpenVEX, vulnerability-scan and SLSA build-provenance attestations, which cosign verify-attestation and gh attestation verify check.

Should I use musl or glibc?

Start with the bare tag, which is musl: a smaller libc means less to patch. Append -glibc to the tag when something needs glibc, such as a Python wheel that only ships manylinux binaries, a native Node addon built against glibc, or a prebuilt dependency that assumes glibc.

How often are the images updated?

Weekly. A scheduled job bumps the pinned nixpkgs revision in flake.lock, commits it to main and rebuilds every image from that commit, so CVE fixes flow through and every published image traces back to a commit whose lockfile reproduces it.

Is varde free to use commercially?

Yes. The build definitions are Apache-2.0, and the images are public on GitHub Container Registry: docker pull works anonymously, with no account, token or per-seat licence. The software bundled inside each image keeps its own upstream licence, and the SBOM lists every component.