NGINX 1.31.8 build recipe
The recipe ReadyStack built readystack/nginx:1.31.8-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 accountAn account is an email address, a username and a password: no card, no donation. It opens all 26 recipe files; the build kit itself keeps its own terms.
Upstream source
Publicgithub.com/nginx/nginx (release-1.31.8) at 140aa942711868a8daeb95810bc9a81f272ada72
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/nginx/nginx release-1.31.8
Pinned inputs
As JSON- Base imageubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
- BuildKitmoby/buildkit:v0.31.2
sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0 - Build method
source-rebuild-c - SOURCE_DATE_EPOCH1792592691 (2026-10-21T14:24:51Z)
- Target digest (linux/amd64)sha256:a15dcfdc9d381a8f199efba6a96fa8683d39b0dd6d4b2e81423bb023da1d102c
- Target config digestsha256:2814660efe9b3892353edad2f6eafcb9d200a598fad615819dddd50ea138ea4e
- Checksummed kit files1,257 (CHECKSUMS.sha256)
Dockerfile Dockerfile.offline.pinned
56 lines · 5.1 KB# GENERATED L-009 hermetic C build (--network=none, SBOM+SLSA-attestation-producing).
# Pinned bases; vendored source (in-tree deps) + extra build debs + runtime debs from Dockerfile.vendor.
FROM ubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c AS cbuild
# dpkg-install the vendored EXTRA build debs (pkg-config/libssl-dev/...) — gcc/make are in the builder.
RUN --mount=type=bind,source=vendored/build-debs,target=/tmp/bdebs \
set --; for f in /tmp/bdebs/*.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; }; }
WORKDIR /src
COPY vendored/nginx-src/ .
ARG SOURCE_DATE_EPOCH=1792592691
ENV SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
RUN ./auto/configure --prefix=/opt/nginx --sbin-path=/opt/nginx/sbin/nginx --modules-path=/opt/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=stderr --http-log-path=/dev/stdout --pid-path=/tmp/nginx.pid --lock-path=/tmp/nginx.lock --http-client-body-temp-path=/tmp/client_temp --http-proxy-temp-path=/tmp/proxy_temp --http-fastcgi-temp-path=/tmp/fastcgi_temp --http-uwsgi-temp-path=/tmp/uwsgi_temp --http-scgi-temp-path=/tmp/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-pcre-jit --with-cc-opt='-O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'
RUN make -j"$(nproc)"
RUN make install
RUN mkdir -p /opt/nginx/conf && cp conf/mime.types conf/fastcgi_params conf/fastcgi.conf conf/scgi_params conf/uwsgi_params conf/koi-utf conf/koi-win conf/win-utf /opt/nginx/conf/
FROM ubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
ENV DEBIAN_FRONTEND=noninteractive PATH=/opt/nginx/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN --mount=type=bind,source=vendored/debs,target=/tmp/debs \
set --; for f in /tmp/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); \Continues: 32 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. Run on your own hardened,
# isolated build platform and sign that provenance with a key the build cannot
# reach, and the result meets SLSA Build Level 3 (see REBUILD.md). 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 | 0da49a3ea98f… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 83299978ccd0… | Opening lines public |
| CHECKSUMS.sha256 | 149 KB | 39db4bcfbe5d… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 5.1 KB | 3c79db59febf… | Free account |
| Dockerfile.offline | 5.1 KB | 3c79db59febf… | Free account |
| Dockerfile.offline.pinned | 5.1 KB | 3c79db59febf… | Opening lines public |
| Dockerfile.vendor | 1.7 KB | b22f14d2ddb7… | Free account |
| MANIFEST.txt | 66 KB | 07bead3bb52f… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | 334173b871d9… | Public · View |
| TARGET_DIGEST.txt | 280 B | 12feb40dfd62… | Public · View |
| VERIFY_OFFLINE.sh | 7.2 KB | 8b036b1f9a7f… | Free account |
| default.conf | 635 B | c7978ad52b91… | Free account |
| docs/PROVENANCE.md | 1.7 KB | 4780d28e5e70… | Free account |
| docs/REBUILD.md | 5.0 KB | fc39bd5108f1… | Free account |
| docs/VERIFY.md | 1.9 KB | 551d6591c95b… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 60 B | 686b9f7e1b04… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 4.1 KB | 7f30c7a3ae84… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 649 B | ed15c19cb798… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 20 KB | 290045106f13… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 306 B | cf0f25330e3f… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 59 B | f9e98658edf9… | Free account |
| docs/provenance/TOOLCHAIN.lock | 3.1 KB | 2989d79a6271… | Free account |
| nginx.conf | 910 B | 9b131650f0aa… | Free account |
| rebuild.json | 1.1 KB | c1ff8dee57d9… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | Public · View |
Made from ReadyStack-nginx-1.31.8-CE-ubuntu24.04-r1.tar.gz (SHA-256 da96641627144e185c0085f81aaafe584707081ceec8e26df86c02855c660225), the build kit on sale for this release, on 2026-10-29.
What the Hermetic Build Kit adds
Free with a verified emailThe recipe pins every input; the kit carries them, so the build runs with the network off:
- Pinned BuildKit toolchain1 files, 106 MB
- Vendored sources and packages630 files, 93 MB
- Base images (OCI layouts)5 files, 28 MB
- Handbooks, SBOM, security report and records597 files, 11 MB