haproxy
haproxy copied to clipboard
Support reproducible builds (except packages)
See:
- docker-library/official-images#16044
-
SOURCE_DATE_EPOCHis added. The value is consumed by the build scripts to make the binary reproducible. -
For Debian,
/var/log/*is removed as they contain timestamps -
For Debian,
/var/cache/ldconfig/aux-cacheis removed as they contain inode numbers, etc. -
For Alpine, virtual package versions are pinned to "0" to eliminate the timestamp-based version numbers that appear in
/etc/apk/worldand/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:
- modify the
FROMinstruction in Dockerfile manually- or, use the
CONVERTaction of source policies to replace the base image. https://github.com/moby/buildkit/blob/v0.13.2/docs/build-repro.mdTo reproduce packages, see the
RUNinstruction hook proposed in moby/buildkit#4576