docker-library / php

Docker Official Image packaging for PHP
https://php.net
MIT License
3.84k stars 2.01k forks source link

Set PHP_UNAME to a fixed value too #1475

Closed tianon closed 11 months ago

tianon commented 11 months ago

The exact kernel/host details of the build system this image compiles on aren't terribly relevant to end users.

Before:

root@eba82b7c80aa:/# php -i | grep -E '^Build System'
Build System => Linux d27aa0629870 5.10.0-13-cloud-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux

After:

root@57a767215ae4:/# php -i | grep -E '^Build System'
Build System => Linux - Docker
tianon commented 11 months ago

It would also be useful/interesting to set SOURCE_DATE_EPOCH to a meaningful value (timestamp from the tarball), but we're a long ways away from full reproducibility of the layers here so kind of a moot point right now.