reproducible build
A build that produces the same result every time from the same inputs.
In more detail
Reproducibility depends on pinned inputs, such as exact dependency versions, recorded tool versions and base images referenced by digest. It lets a problem seen on one machine be recreated on another and helps prove that what runs in production is what passed tests. Even so, promoting the tested artifact is safer than trusting a rebuild to match.
Examples
go build -trimpath -ldflags="-s -w" -o app .The Maven Wrapper and pinned dependency versions keep the course build reproducible.Rebuilding a virtual environment from a pinned requirements.txt gives the same packages byte for byte.Pinning the zip entry timestamp to 1980-01-01 makes two builds byte-identicalRelated terms
- pinning — Fixing an exact version or digest of something you depend on so it cannot change without you noticing.
- image promotion — Moving the exact same, already-tested image through environments, such as staging to production, without rebuilding it.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
- configuration drift — The slow, unrecorded way machines end up with different versions and settings from each other.
- build wrapper — A small script committed to a project that downloads and runs the exact build tool version the project expects.
- lockfile — A file that records the exact version of every dependency, including transitive ones, so every install gets the same set.
- multi-stage build — A Dockerfile with several FROM stages, where later stages copy only what they need from earlier ones.
- requirements file — A text file, usually requirements.txt, listing the packages a project needs, one per line, often pinned to exact versions.
- provenance attestation — A signed record, attached to an image, of how, where and from what source it was built.
Taught in
- What Is a Pipeline? — Continuous Integration & Continuous Delivery Pipelines
- Building and Pushing Container Images — Continuous Integration & Continuous Delivery Pipelines
- Tags, Digests And Reproducible Image References — Docker Architecture & Production Containers
- Building Static Binaries — Concurrent Systems Programming with Go
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- Packaging Into A Container — Modern Java: Virtual Threads & High-Throughput Services
- Containerized Deployment: Multi-Stage Docker Builds — Next.js 15 & Modern App Router Architecture
- pip, requirements, and installing packages — Hands-on Python: Complete Video Course & Book
- Dates, Times And Random — Hands-on Python: Complete Video Course & Book
- Lockfiles And Reproducible Builds — Application Security & Threat Modeling for Engineers