SWAG 5.9.0 build recipe
The recipe ReadyStack built readystack/swag:5.9.0-CE-ubuntu24.04-r1 from: the upstream source it starts from, every pinned input, and the files that run the build with the network off. Public here: the source and commit, the pinned inputs, all 26 recipe files with their sizes and SHA-256, 9 of them public in full or in part, and the opening lines of the Dockerfile and build script.
The whole recipe
Free accountReadyStack does not charge for recipes; we only ask you to sign up. An account is an email address, a username and a password. It opens all 26 recipe files, and the build kit downloads free with it too.
Upstream source
Publicgithub.com/linuxserver/docker-swag (5.9.0-ls497) at 24000edb531a50939fd4e1a9e5943aa659fb2dab
Fetched once, with the network on, by the vendor step (Dockerfile.vendor) when the kit was made; the offline build uses the kit's vendored copies:
- git https://github.com/linuxserver/docker-swag 5.9.0-ls497
- https://www.python.org/ftp/python/3.12.16/Python-3.12.16.tar.xz
- https://codeload.github.com/linuxserver/docker-baseimage-alpine-nginx/tar.gz/30e1ccd3ede168ba429f06371cf8c5f81b7b37f0
- https://codeload.github.com/linuxserver/reverse-proxy-confs/tar.gz/76eed75fdf5da41de268a61c6df673cb8ae6f5ba
- https://nginx.org/download/nginx-1.30.6.tar.gz
- https://github.com/openresty/headers-more-nginx-module/archive/refs/tags/v0.41.tar.gz
- https://github.com/fail2ban/fail2ban/archive/refs/tags/1.1.1.tar.gz
Pinned inputs
As JSON- Base imageubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852
- BuildKitmoby/buildkit:v0.31.2
sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0 - Build method
source-rebuild-python - SOURCE_DATE_EPOCH1793438806 (2026-10-31T09:26:46Z)
- Target digest (linux/amd64)sha256:fae67e509ab4b905beeb49e4c409e63f7bbeb36c13ba149af182d47d6b8797c3
- Target config digestsha256:f26aa2ad2d0d7a034b3e0624671d8c26ee5852534d1ae3456a9a72a1e35e8c86
- Checksummed kit files1,141 (CHECKSUMS.sha256)
Dockerfile Dockerfile.offline.pinned
88 lines · 12 KB# GENERATED L-009 hermetic Python build (--network=none, SBOM+SLSA-attestation-producing).
# Pinned base from BASE_IMAGE_DIGESTS.lock; vendored wheelhouse + source + debs from Dockerfile.vendor.
# pydeps sub-stage installs the wheelhouse offline; COPY /deps /usr/local keeps pip OUT of the runtime SBOM.
# CPython 3.12.16 COMPILED HERE, offline, from python.org's tarball (sha256 re-checked) and the vendored
# build debs, by the same command the vendor stage ran; linked against Ubuntu's libraries (debs the scan
# sees, apt fixes). The runtime takes /usr/local from this stage and none of the toolchain.
FROM ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS cpython
ARG SOURCE_DATE_EPOCH=1793438806
ENV SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
COPY vendored/python/debs/ /tmp/cpython-debs/
COPY vendored/python/Python-3.12.16.tar.xz /tmp/Python-3.12.16.tar.xz
RUN set --; for f in /tmp/cpython-debs/*.deb; do [ -e "$f" ] && set -- "$@" "$f"; done; \
for pass in 1 2 3 4 5; do [ $# -eq 0 ] || dpkg -i --skip-same-version "$@" >/dev/null 2>&1 && break; done; \
dpkg --configure -a && bad= && for d in "$@"; do p=$(dpkg-deb -f "$d" Package) v=$(dpkg-deb -f "$d" Version); \
case "$(dpkg-query -W -f='${Version} ${db:Status-Abbrev}' "$p" 2>/dev/null)" in "$v ii"*) ;; *) bad="$bad $p=$v" ;; esac; done && \
{ [ -z "$bad" ] || { echo "vendored debs not installed at their vendored version:$bad" >&2; false; }; } && \
: "${SOURCE_DATE_EPOCH:?the CPython build needs SOURCE_DATE_EPOCH}" && \
echo "b5796915dc45ff745cfb4e990a7e7c93d6f546328a102ce31448d69ebc37575c /tmp/Python-3.12.16.tar.xz" | sha256sum -c - && \
mkdir -p /usr/src/python && tar -xJf /tmp/Python-3.12.16.tar.xz -C /usr/src/python --strip-components=1 --no-same-owner && \
rm -rf /tmp/cpython-debs /tmp/Python-3.12.16.tar.xz && cd /usr/src/python && \
export DEB_BUILD_MAINT_OPTIONS=optimize=-lto && \
PYCF="$(dpkg-buildflags --get CFLAGS) $(dpkg-buildflags --get CPPFLAGS)" && PYLD="$(dpkg-buildflags --get LDFLAGS)" && \
./configure --build=x86_64-linux-gnu --prefix=/usr/local --enable-shared --enable-loadable-sqlite-extensions --enable-option-checking=fatal --disable-test-modules --without-static-libpython --with-ensurepip=install --with-system-expat --without-system-libmpdec --with-dbmliborder= py_cv_module__dbm=n/a py_cv_module__gdbm=n/a py_cv_module__tkinter=n/a && \
make -j"$(nproc)" "EXTRA_CFLAGS=$PYCF" "LDFLAGS=$PYLD,--strip-all" && \Continues: 64 more lines. Create a free account to read the rest, or sign in.
Build script BUILD_OFFLINE.sh
125 lines · 6.6 KB#!/usr/bin/env bash
# =============================================================================
# ReadyStack — offline reproducible rebuild.
#
# Rebuilds this product's image from THIS ARCHIVE ALONE, with no network access
# of any kind, and prints the resulting linux/amd64 image-manifest digest.
# Run ./VERIFY_OFFLINE.sh afterwards to assert it equals the published digest.
#
# Requirements: linux/amd64 Docker host, docker buildx >= 0.30, jq, tar.
# No git, no registry access, no additional tooling.
#
# ./BUILD_OFFLINE.sh the rebuild (OCI image + a docker-loadable copy)
# ./BUILD_OFFLINE.sh --provenance the same rebuild with SLSA v1 build provenance (mode=max) attached to the OCI
# image, generated by BuildKit, not by any build step. Your build platform runs
# the build and signs that provenance with a key the build steps cannot reach
# (see REBUILD.md). Any SLSA build level is your platform's; this archive claims
# none. The image digest is the same either way.
# =============================================================================
set -euo pipefail
PROVENANCE=0
for arg in "$@"; do
case "$arg" in
--provenance) PROVENANCE=1 ;;
-h|--help) sed -n '2,20p' "$0"; exit 0 ;;Continues: 101 more lines. Create a free account to read the rest, or sign in.
Recipe files
26 files · SHA-256 of each as published here| File | Size | SHA-256 | Access |
|---|---|---|---|
| BASES.tsv | 121 B | 63822800fc2b… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 6633aa31b6b4… | Opening lines public |
| CHECKSUMS.sha256 | 150 KB | 46a785f877f5… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 12 KB | 6d59c9f180ce… | Free account |
| Dockerfile.offline | 12 KB | 6d59c9f180ce… | Free account |
| Dockerfile.offline.pinned | 12 KB | 6d59c9f180ce… | Opening lines public |
| Dockerfile.vendor | 12 KB | 479502509884… | Free account |
| MANIFEST.txt | 74 KB | 17cb2b285086… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | 60b7a228185e… | Public · View |
| TARGET_DIGEST.txt | 393 B | 04116a847ee1… | Public · View |
| VERIFY_OFFLINE.sh | 9.9 KB | 3e8184ea230c… | Free account |
| docs/PROVENANCE.md | 2.5 KB | b6a5c10cafea… | Free account |
| docs/REBUILD.md | 5.0 KB | ccd19fe95868… | Free account |
| docs/VERIFY.md | 1.9 KB | 1d73ee1fe08d… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 47 B | 7acd08a7c2d3… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 8.4 KB | 571180da9a4b… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 657 B | e79748377efc… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 7.6 KB | 4be9fa677ca0… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 314 B | b392efb4fac4… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 93 B | 28602e4092a8… | Free account |
| docs/provenance/TOOLCHAIN.lock | 7.4 KB | 608e26d38425… | Free account |
| nginx-root.conf | 34 B | dd042df74e80… | Free account |
| rebuild.json | 1.2 KB | 5b3946ed3dfb… | Free account |
| swag-entrypoint.sh | 9.5 KB | 147be6b4c17b… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | Public · View |
Something wrong in this recipe? Report a recipe error on the public issue tracker.
Made from ReadyStack-swag-5.9.0-CE-ubuntu24.04-r1.tar.gz (SHA-256 df74dc2fb2a4ad2576da24e70fd9d5eb7b4bce983327760db7ad0268136e6872), the build kit published for this release, on 2026-11-09.
What the Hermetic Build Kit adds
Free with an accountThe recipe pins every input; the kit carries them, so the build runs with the network off:
- Vendored sources and packages901 files, 254 MB
- Pinned BuildKit toolchain1 files, 106 MB
- Base images (OCI layouts)5 files, 28 MB
- Handbooks, SBOM, security report and records210 files, 4.8 MB