diff --git a/org/alt/distroless-builder/Dockerfile.template b/org/alt/distroless-builder/Dockerfile.template index 023ac33..6199450 100644 --- a/org/alt/distroless-builder/Dockerfile.template +++ b/org/alt/distroless-builder/Dockerfile.template @@ -3,6 +3,7 @@ FROM {{ registry }}{{ alt_image }}:{{ branch }} MAINTAINER alt-cloud RUN echo %_excludedocs 1 >> /etc/rpm/macros +RUN rpm -qalds | awk '/^normal/{print $2}' | xargs rm -rf {{ install_pakages("python3", "glibc-utils") }} WORKDIR /usr/src/distroless RUN mkdir file-lists