BookStack v26.09.2 build recipe

The recipe ReadyStack built readystack/bookstack:v26.09.2-CE-ubuntu24.04-r3 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 31 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 account

An account is an email address, a username and a password: no card, no donation. It opens all 31 recipe files; the build kit itself keeps its own terms.

Upstream source

Public

github.com/BookStackApp/BookStack (v26.09.2) at 6265d5667dd6904b7aa0d05a8c60795cf104011b

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:

Pinned inputs

As JSON
  • Base imageubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
  • BuildKitmoby/buildkit:v0.31.2
    sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0
  • Build methodsource-rebuild-php
  • SOURCE_DATE_EPOCH1792495911 (2026-10-20T11:31:51Z)
  • Target digest (linux/amd64)sha256:a649f1eb980bbf47ef8db89e20124a3f9a13a9834872256c4a81d54a50565b94
  • Target config digestsha256:4ba664b77d0d2906a2cadd8c701672213b9b2e6c35baf1ea8b417b92a69d735f
  • Checksummed kit files17,532 (CHECKSUMS.sha256)

Dockerfile Dockerfile.offline.pinned

74 lines · 5.9 KB
# GENERATED L-009 hermetic PHP build on Ubuntu's own packages (--network=none, SBOM+SLSA-attestation-producing).
# Pinned ubuntu:24.04; vendored app source + the deb closure (Ubuntu's PHP 8.3, its extensions, Apache, runtime debs).
FROM ubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
ENV DEBIAN_FRONTEND=noninteractive APACHE_RUN_USER=bookstack APACHE_RUN_GROUP=bookstack APACHE_DOCUMENT_ROOT=/app/public APP_ENV=production APP_DEBUG=false DB_CONNECTION=mysql DB_PORT=3306 CACHE_DRIVER=file SESSION_DRIVER=file
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); \
      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; }; } && \
    rm -rf /var/lib/apt/lists/* \
           /var/log/dpkg.log /var/log/alternatives.log /var/log/apt /var/cache/ldconfig/aux-cache /var/cache/fontconfig
# Apache + PHP set up as the official php:apache image sets them up (the image this product's Debian releases
# ran on), so the product's scaffold, post_copy_run and entrypoint behave as they did there.
COPY readystack-php.ini /etc/php/8.3/apache2/php.ini
COPY readystack-php.ini /etc/php/8.3/cli/php.ini
COPY readystack-mod-php.conf /etc/apache2/mods-available/php8.3.conf
COPY readystack-php.conf /etc/apache2/conf-available/readystack-php.conf
COPY apache2-foreground /usr/local/bin/apache2-foreground
RUN chmod 0755 /usr/local/bin/apache2-foreground && \
    sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' /etc/apache2/envvars && \
    a2dismod -q mpm_event && a2enmod -q mpm_prefork && a2enconf -q readystack-php && \
    rm -rf /var/www/html && mkdir -p /var/www/html && chown www-data:www-data /var/www/html && chmod 1777 /var/www/html && \
    for d in /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/run/apache2/socks; do \

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

31 files · SHA-256 of each as published here
FileSizeSHA-256Access
BASES.tsv121 B0da49a3ea98f…Public · View
BUILD_OFFLINE.sh6.6 KB83299978ccd0…Opening lines public
CHECKSUMS.sha2562.5 MB1f6397459cfc…Free account
DOCKERFILE_NAME.txt26 B9aadd1ede68e…Public · View
Dockerfile5.9 KB713f2d840116…Free account
Dockerfile.offline5.9 KB713f2d840116…Free account
Dockerfile.offline.pinned5.9 KB713f2d840116…Opening lines public
Dockerfile.vendor1.7 KB486733317d67…Free account
MANIFEST.txt1.4 MB13c78ccf661e…Free account
SOURCE_DATE_EPOCH.txt11 Bbe8667b492ff…Public · View
TARGET_DIGEST.txt432 B6514a1cae714…Public · View
VERIFY_OFFLINE.sh7.2 KB8b036b1f9a7f…Free account
apache2-foreground732 B003f1949772a…Free account
bookstack-vhost.conf273 Bff38ca0700fe…Free account
docker-entrypoint.sh2.0 KB886de540700f…Free account
docs/PROVENANCE.md1.7 KB07acbcdfc0fd…Free account
docs/REBUILD.md5.1 KB3e73e6edc409…Free account
docs/VERIFY.md1.9 KB72fb429a5fa2…Free account
docs/provenance/BASE_IMAGE_DIGESTS.lock52 B6064fa81846b…Public · View
docs/provenance/BUILD_RECIPE.json4.8 KB868d550e9dd1…Free account
docs/provenance/CUSTODY_INPUTS.json658 Be4418851bca1…Free account
docs/provenance/SOURCE_FILE_MANIFEST.json114 KB468c0d5528be…Free account
docs/provenance/SOURCE_TREE_HASH.json316 Bf1d4ee3a9fe3…Public · View
docs/provenance/SYSTEM_PINNING.lock154 Bf9bd00f803b2…Free account
docs/provenance/TOOLCHAIN.lock3.1 KB1768995b8077…Free account
readystack-default-admin.php555 B969107c07c72…Free account
readystack-mod-php.conf390 Bf8eb513ee5ae…Free account
readystack-php.conf396 Bd15053c81ce9…Free account
readystack-php.ini281 Ba6b6e823b84e…Free account
rebuild.json1.2 KB437591bdad74…Free account
toolchain/BUILDKIT_TAG.txt22 Bfcd530eeb02b…Public · View

Made from ReadyStack-bookstack-v26.09.2-CE-ubuntu24.04-r3.tar.gz (SHA-256 e3b0ec96754d2b3682f1d4e83ce9474e071d8b4c3da8967e9c03dfe14bb9f9f1), the build kit on sale for this release, on 2026-10-29.

What the Hermetic Build Kit adds

Free with a verified email

The recipe pins every input; the kit carries them, so the build runs with the network off:

  • Vendored sources and packages14,817 files, 156 MB
  • Pinned BuildKit toolchain1 files, 106 MB
  • Base images (OCI layouts)5 files, 28 MB
  • Handbooks, SBOM, security report and records2,680 files, 23 MB