Gitea v28.2.0 build recipe

The recipe ReadyStack built readystack/gitea:v28.2.0-CE-ubuntu24.04-r2 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

An 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

Public

github.com/go-gitea/gitea (v28.2.0) at 829b49c1ae96015e345f9d2a0eb1ea7acd5f31e1

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 imagegolang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5
  • Base imageubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
  • BuildKitmoby/buildkit:v0.31.2
    sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0
  • Build methodsource-rebuild-go
  • SOURCE_DATE_EPOCH1792345836 (2026-10-18T17:50:36Z)
  • Target digest (linux/amd64)sha256:2ed51d5a2ab0feeb0e392b90c626c027da93feaf15fa63770a2c41ed7d909a45
  • Target config digestsha256:ddc94b1b535e15fcb0291012ed0023fc532984bc4c7c00d71abd7c4dcb930361
  • Checksummed kit files24,330 (CHECKSUMS.sha256)

Dockerfile Dockerfile.offline.pinned

56 lines · 3.4 KB
# =====================================================================
# L-009 HERMETIC OFFLINE BUILD (gitea) — the canonical, attestation-
# producing build, run by build_kit's L-009 buildx:
#   docker buildx build --builder readystack-builder-max --network=none
#     --attest type=provenance,mode=max --attest type=sbom --push <git-context>
#
# Pinned-public-base + vendored model (self-contained; no FROM gitea-base:offline):
#   - golang + ubuntu pinned BY DIGEST (same digests as caddy/traefik — warm in the
#     builder cache; RUN steps are --network=none hermetic)
#   - vendored/git-lfs-src + vendored/gitea-src : fully-vendored Go trees + the prebuilt
#     gitea frontend (materialized by `make build` in the vendor stage), GOPROXY=off
#   - vendored/debs : apt CVE-upgrade closure + gitea runtime pkgs, dpkg offline
# Two binaries: git-lfs (CGO off) + gitea (CGO on for sqlite, tags bindata+sqlite).
# =====================================================================
FROM golang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5 AS lfs
WORKDIR /lfs
COPY vendored/git-lfs-src/ .
ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOFLAGS="-buildvcs=false -mod=vendor" GOPROXY=off
RUN go build -trimpath -ldflags="-s -w -X github.com/git-lfs/git-lfs/v3/config.Version=3.8.0" -o /git-lfs . && /git-lfs version

FROM golang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5 AS gitea
WORKDIR /src
COPY vendored/gitea-src/ .
ENV CGO_ENABLED=1 GOTOOLCHAIN=local GOFLAGS="-mod=vendor" GOPROXY=off

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
FileSizeSHA-256Access
BASES.tsv262 B203db39d3116…Public · View
BUILD_OFFLINE.sh6.6 KB83299978ccd0…Opening lines public
CHECKSUMS.sha2563.2 MB300d03b7dba8…Free account
DOCKERFILE_NAME.txt26 B9aadd1ede68e…Public · View
Dockerfile2.8 KB76b5ee75ec79…Free account
Dockerfile.base830 B743ff38417f2…Free account
Dockerfile.offline2.8 KB76b5ee75ec79…Free account
Dockerfile.offline.pinned3.4 KBb7dbfc1df07c…Opening lines public
Dockerfile.vendor4.1 KBa770751288fa…Free account
MANIFEST.txt1.6 MBf9a58d66357b…Free account
SOURCE_DATE_EPOCH.txt11 Bb4c2f30c5059…Public · View
TARGET_DIGEST.txt285 B37804a5dc313…Public · View
VERIFY_OFFLINE.sh7.2 KB8b036b1f9a7f…Free account
docs/PROVENANCE.md1.7 KB0794eb081583…Free account
docs/REBUILD.md5.0 KBcfa3d960fd7f…Free account
docs/VERIFY.md1.9 KB66752decaf4e…Free account
docs/provenance/BASE_IMAGE_DIGESTS.lock70 Bf19d82cf77e6…Public · View
docs/provenance/BUILD_RECIPE.json1.2 KB5f40ba6a8f30…Free account
docs/provenance/CUSTODY_INPUTS.json649 B60e21d168a6b…Free account
docs/provenance/SOURCE_FILE_MANIFEST.json222 KB2647d74c7824…Free account
docs/provenance/SOURCE_TREE_HASH.json307 Bd15b2d2cbe75…Public · View
docs/provenance/SYSTEM_PINNING.lock65 B37e9f8d94846…Free account
docs/provenance/TOOLCHAIN.lock2.5 KB89973f85e800…Free account
entrypoint.sh2.8 KBf0606ecc3067…Free account
rebuild.json1.4 KB3b4e96827260…Free account
toolchain/BUILDKIT_TAG.txt22 Bfcd530eeb02b…Public · View

Made from ReadyStack-gitea-v28.2.0-CE-ubuntu24.04-r2.tar.gz (SHA-256 5dd4fdcf3d9236d468ed8460ceeadc1e6dad0d9d94100c772351423272d3293e), 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 packages17,869 files, 328 MB
  • Base images (OCI layouts)16 files, 315 MB
  • Pinned BuildKit toolchain1 files, 106 MB
  • Handbooks, SBOM, security report and records6,420 files, 37 MB