Nextcloud v35.0.2 build recipe
The recipe ReadyStack built readystack/nextcloud:v35.0.2-CE-ubuntu24.04-r4 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 accountAn 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
Publicgithub.com/nextcloud/server (v35.0.2) at ba900af933e61ffa005315b09d6454bfbbcbcc81
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/nextcloud/server v35.0.2
Pinned inputs
As JSON- Base imageubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
- BuildKitmoby/buildkit:v0.31.2
sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0 - Build method
source-rebuild-php - SOURCE_DATE_EPOCH1792051224 (2026-10-15T08:00:24Z)
- Target digest (linux/amd64)sha256:7d2b7cb7f3ab3b18dbfee5cdb02fd70ed6cdc10fb71569f68c3036285c298613
- Target config digestsha256:c96da2ba2bff2f6b4bf1c5fba7ff9687471ddad48324bd23e380386fb0da1f8d
- Checksummed kit files36,386 (CHECKSUMS.sha256)
Dockerfile Dockerfile.offline.pinned
83 lines · 7.6 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=www-data APACHE_RUN_GROUP=www-data APACHE_DOCUMENT_ROOT=/var/www/html PHP_MEMORY_LIMIT=512M PHP_UPLOAD_LIMIT=512M NEXTCLOUD_DATA_DIR=/var/www/html/data
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: 59 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| File | Size | SHA-256 | Access |
|---|---|---|---|
| BASES.tsv | 121 B | 0da49a3ea98f… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 83299978ccd0… | Opening lines public |
| CHECKSUMS.sha256 | 5.0 MB | e26352e2e031… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 7.6 KB | f0ecb141f596… | Free account |
| Dockerfile.offline | 7.6 KB | f0ecb141f596… | Free account |
| Dockerfile.offline.pinned | 7.6 KB | f0ecb141f596… | Opening lines public |
| Dockerfile.vendor | 2.6 KB | cf94ef08b1bf… | Free account |
| MANIFEST.txt | 2.6 MB | e7fb94ff10cf… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | f9c0b3137c9d… | Public · View |
| TARGET_DIGEST.txt | 288 B | 5e88fbe5aefc… | Public · View |
| VERIFY_OFFLINE.sh | 7.2 KB | 8b036b1f9a7f… | Free account |
| apache2-foreground | 732 B | 003f1949772a… | Free account |
| docker-entrypoint.sh | 1.0 KB | 7c6a5b9a0496… | Free account |
| docs/PROVENANCE.md | 1.7 KB | 04a92a46ebae… | Free account |
| docs/REBUILD.md | 5.1 KB | 2f2e555e9aac… | Free account |
| docs/VERIFY.md | 1.9 KB | 57877a510ba7… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 52 B | 553ed440595d… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 6.6 KB | 336e392d46ca… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 651 B | d0d34bfe01a9… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 341 KB | 44e9d19435d9… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 310 B | ceedf3ace496… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 193 B | eb2b3ee7bd69… | Free account |
| docs/provenance/TOOLCHAIN.lock | 4.7 KB | 925ca7290db8… | Free account |
| nextcloud-vhost.conf | 377 B | 758c2f95a0d0… | Free account |
| nextcloud.ini | 305 B | 67325c8b1db9… | Free account |
| readystack-mod-php.conf | 390 B | f8eb513ee5ae… | Free account |
| readystack-php.conf | 396 B | d15053c81ce9… | Free account |
| readystack-php.ini | 281 B | a6b6e823b84e… | Free account |
| rebuild.json | 1.1 KB | ee30e55fe60a… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | Public · View |
Made from ReadyStack-nextcloud-v35.0.2-CE-ubuntu24.04-r4.tar.gz (SHA-256 fce3f125db3558983a2edee3c13987ccdd8f8355339d2903c51746e7d4b42039), 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:
- Vendored sources and packages17,540 files, 306 MB
- Handbooks, SBOM, security report and records18,811 files, 300 MB
- Pinned BuildKit toolchain1 files, 106 MB
- Base images (OCI layouts)5 files, 28 MB