Remove ldconfig cache from Dockerfile.template

Not needed at runtime and adds non-determinism
This commit is contained in:
Robin Candau 2026-03-30 22:47:09 +02:00
parent 87a723680e
commit eb80a94f54
No known key found for this signature in database
GPG Key ID: FDC3040B92ACA748

View File

@ -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"]