Pack /etc/localtime then set timezone

This commit is contained in:
Mikhail Gordeev 2023-02-12 19:00:47 +03:00
parent 626e296cc3
commit 7d65813779

View File

@ -76,6 +76,8 @@ class Distroless:
self.builder_install_packages = dd.get("builder-install-packages") self.builder_install_packages = dd.get("builder-install-packages")
self.timezone = dd.get("timezone") self.timezone = dd.get("timezone")
if self.timezone:
self.files.append("/etc/localtime")
self.copy = dd.get("copy", {}) self.copy = dd.get("copy", {})