Mastodon v4.7.4 build recipe

The recipe ReadyStack built readystack/mastodon:v4.7.4-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 account

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

Pinned inputs

As JSON
  • Base imageubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852
  • BuildKitmoby/buildkit:v0.31.2
    sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0
  • Build methodsource-rebuild-ruby
  • SOURCE_DATE_EPOCH1793282182 (2026-10-29T13:56:22Z)
  • Target digest (linux/amd64)sha256:426e1abb01de6f2652e23d2d2bdde2df9c24eae4ad2517520c395ba07830a02b
  • Target config digestsha256:f968289c31092615813644ffcc5f177bba034cf1a0c1de6267ba954ed2450aee
  • Checksummed kit files27,127 (CHECKSUMS.sha256)

Dockerfile Dockerfile.offline.pinned

79 lines · 8.0 KB
# GENERATED L-009 hermetic Ruby build (--network=none, SBOM+SLSA-attestation-producing).
# Compiles CRuby 4.0.9 from the vendored ruby-lang.org tarball and the native gems from vendor/cache, then
# copies Ruby + the installed bundle onto the pinned base with only runtime debs: no compiler, headers or Node.
FROM ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS rubybuild
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8
RUN --mount=type=bind,source=vendored/debs,target=/tmp/debs --mount=type=bind,source=vendored/build-debs,target=/tmp/bdebs \
    set --; for f in /tmp/debs/*.deb /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; }; }
ARG SOURCE_DATE_EPOCH=1793282182
ENV SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
COPY vendored/ruby/ /tmp/ruby/
RUN cd /tmp/ruby && echo 'c35350682ff050b79702d57ade4516e7336063f510155d19fb2fb5b3f3909511  ruby-4.0.9.tar.gz' | sha256sum -c - && \
    tar -xzf ruby-4.0.9.tar.gz && cd ruby-4.0.9 && \
    ./configure --prefix=/usr/local --enable-shared --disable-install-doc --disable-install-static-library --enable-yjit --with-jemalloc && \
    make -j"$(nproc)" && make install && \
    cd / && rm -rf /tmp/ruby && \
    find /usr/local/lib/ruby \( -name gem_make.out -o -name mkmf.log \) -delete && \
    ruby --version | grep -qF 'ruby 4.0.9'
COPY kitforge-ruby-gems.rb /tmp/kitforge-ruby-gems.rb
COPY vendored/ruby-gems/ /tmp/ruby-gems/
RUN ruby /tmp/kitforge-ruby-gems.rb install /tmp/ruby-gems json=2.21.2 && \

Continues: 55 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
FileSizeSHA-256Access
BASES.tsv121 B63822800fc2b…Public · View
BUILD_OFFLINE.sh6.6 KB6633aa31b6b4…Opening lines public
CHECKSUMS.sha2563.5 MB14d51666c673…Free account
DOCKERFILE_NAME.txt26 B9aadd1ede68e…Public · View
Dockerfile8.0 KB0c3daf6e2fe9…Free account
Dockerfile.offline8.0 KB0c3daf6e2fe9…Free account
Dockerfile.offline.pinned8.0 KB0c3daf6e2fe9…Opening lines public
Dockerfile.vendor10 KB1d151bd5c50f…Free account
MANIFEST.txt1.8 MBc16a7db1aaad…Free account
SOURCE_DATE_EPOCH.txt11 B1bd6e653621a…Public · View
TARGET_DIGEST.txt437 B4c49062e7e65…Public · View
VERIFY_OFFLINE.sh9.9 KB3e8184ea230c…Free account
docs/PROVENANCE.md1.7 KBc2a21d9e4f16…Free account
docs/REBUILD.md5.0 KBa50277fb9976…Free account
docs/VERIFY.md1.9 KBd8d3848b13f7…Free account
docs/provenance/BASE_IMAGE_DIGESTS.lock51 B0cfd6c80e90e…Public · View
docs/provenance/BUILD_RECIPE.json9.0 KBd428237f350b…Free account
docs/provenance/CUSTODY_INPUTS.json650 Bb2486b0c1e20…Free account
docs/provenance/SOURCE_FILE_MANIFEST.json262 KBae1d85af5508…Free account
docs/provenance/SOURCE_TREE_HASH.json308 B844c9d7e33a9…Public · View
docs/provenance/SYSTEM_PINNING.lock383 Bb15de43eae5a…Free account
docs/provenance/TOOLCHAIN.lock6.7 KB045f0417f647…Free account
kitforge-ruby-gems.rb5.4 KB7f6627293be0…Free account
mastodon-entrypoint.sh1.3 KB14ebbe17d597…Free account
rebuild.json1.2 KB3966404a3c02…Free account
toolchain/BUILDKIT_TAG.txt22 Bfcd530eeb02b…Public · View

Something wrong in this recipe? Report a recipe error on the public issue tracker.

Made from ReadyStack-mastodon-v4.7.4-CE-ubuntu24.04-r1.tar.gz (SHA-256 9eb346eb2e2638ba5547a343527ff534536552a78694fb2ebc5ce1025005c19a), the build kit published for this release, on 2026-11-01.

What the Hermetic Build Kit adds

Free with an account

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

  • Vendored sources and packages17,112 files, 639 MB
  • Pinned BuildKit toolchain1 files, 106 MB
  • Handbooks, SBOM, security report and records9,985 files, 88 MB
  • Base images (OCI layouts)5 files, 28 MB