From eb80a94f54a83d4547e322251c69bfb575dc89e3 Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Mon, 30 Mar 2026 22:47:09 +0200 Subject: [PATCH] Remove ldconfig cache from Dockerfile.template Not needed at runtime and adds non-determinism --- Dockerfile.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.template b/Dockerfile.template index 6ecfc3d..f7d3cf0 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -37,7 +37,8 @@ LABEL org.opencontainers.image.created="TEMPLATE_CREATED" COPY --from=verify /rootfs/ / RUN ldconfig && \ - sed -i '/BUILD_ID/a VERSION_ID=TEMPLATE_VERSION_ID' /etc/os-release + sed -i '/BUILD_ID/a VERSION_ID=TEMPLATE_VERSION_ID' /etc/os-release && \ + rm -f /var/cache/ldconfig/aux-cache ENV LANG=C.UTF-8 CMD ["/usr/bin/bash"]