docker-bash icon indicating copy to clipboard operation
docker-bash copied to clipboard

Support reproducible builds (except packages)

Open AkihiroSuda opened this issue 1 year ago • 1 comments

See:

  • docker-library/official-images#16044

  • SOURCE_DATE_EPOCH is added. The value is consumed by the build scripts to make the binary reproducible.

  • For Alpine, virtual package versions are pinned to "0" to eliminate the timestamp-based version numbers that appear in /etc/apk/world and /lib/apk/db/installed

[!NOTE] The following topics are NOT covered by this commit:

  • To reproduce file timestamps in layers, BuildKit has to be executed with --output type=<TYPE>,rewrite-timestamp=true. Needs BuildKit v0.13 or later.

  • To reproduce the base image by the hash, reproducers may:

  • To reproduce packages, see the RUN instruction hook proposed in moby/buildkit#4576

AkihiroSuda avatar May 01 '24 06:05 AkihiroSuda

ping 🙇‍♂️ @tianon

AkihiroSuda avatar Sep 04 '24 03:09 AkihiroSuda