Open satwell opened 1 month ago
The root cause here seems to be a bug in
tzdata
--it shouldn't fail in a way that writes an invalid configuration.
Is this filed in an upstream bug tracker somewhere? :eyes:
I've filed a bug against Debian tzdata
at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078604.
All of the buildpack-deps ubuntu images have broken content in
/etc/timezone
:The
/etc/timezone
file is supposed to be the name of a timezone, in the same format as theTZ
environment variable./UTC
is invalid (note the slash at the beginning). The Debian-based buildpack-deps images haveEtc/UTC
in this file, which is correct.The problem happens during installation of the
tzdata
package in the-curl
images.tzdata
has some friendly prompts to configure the timezone, and they're failing when stdin isn't available during the docker build. See the relevant portion of the build log:Debian isn't affected by this bug because the
debian
images already have thetzdata
package installed correctly.The root cause here seems to be a bug in
tzdata
--it shouldn't fail in a way that writes an invalid configuration.But it's easy to work around in buildpack-deps. Setting
DEBIAN_FRONTEND=noninteractive
when runningapt-get install
will prevent packages from trying to prompt for configuration.