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 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/mastodon/mastodon (v4.7.4) at d04059fc80be5cbba6b4dd5a8b94d63ffff09f2c
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/mastodon/mastodon v4.7.4
- https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.9.tar.gz
- https://cache.ruby-lang.org/pub/ruby/index.txt
- https://nodejs.org/dist/v24.22.1/node-v24.22.1-linux-x64.tar.gz
- https://nodejs.org/dist/v24.22.1/SHASUMS256.txt
- https://github.com/libvips/libvips/releases/download/v8.18.7/vips-8.18.7.tar.xz
- https://ffmpeg.org/releases/ffmpeg-9.0.2.tar.xz
Pinned inputs
As JSON- Base imageubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852
- BuildKitmoby/buildkit:v0.31.2
sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0 - Build method
source-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| File | Size | SHA-256 | Access |
|---|---|---|---|
| BASES.tsv | 121 B | 63822800fc2b… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 6633aa31b6b4… | Opening lines public |
| CHECKSUMS.sha256 | 3.5 MB | 14d51666c673… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 8.0 KB | 0c3daf6e2fe9… | Free account |
| Dockerfile.offline | 8.0 KB | 0c3daf6e2fe9… | Free account |
| Dockerfile.offline.pinned | 8.0 KB | 0c3daf6e2fe9… | Opening lines public |
| Dockerfile.vendor | 10 KB | 1d151bd5c50f… | Free account |
| MANIFEST.txt | 1.8 MB | c16a7db1aaad… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | 1bd6e653621a… | Public · View |
| TARGET_DIGEST.txt | 437 B | 4c49062e7e65… | Public · View |
| VERIFY_OFFLINE.sh | 9.9 KB | 3e8184ea230c… | Free account |
| docs/PROVENANCE.md | 1.7 KB | c2a21d9e4f16… | Free account |
| docs/REBUILD.md | 5.0 KB | a50277fb9976… | Free account |
| docs/VERIFY.md | 1.9 KB | d8d3848b13f7… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 51 B | 0cfd6c80e90e… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 9.0 KB | d428237f350b… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 650 B | b2486b0c1e20… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 262 KB | ae1d85af5508… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 308 B | 844c9d7e33a9… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 383 B | b15de43eae5a… | Free account |
| docs/provenance/TOOLCHAIN.lock | 6.7 KB | 045f0417f647… | Free account |
| kitforge-ruby-gems.rb | 5.4 KB | 7f6627293be0… | Free account |
| mastodon-entrypoint.sh | 1.3 KB | 14ebbe17d597… | Free account |
| rebuild.json | 1.2 KB | 3966404a3c02… | 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-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 accountThe 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