From 382b213b8692fd4af115d3cd77f3094e7f2bc3c6 Mon Sep 17 00:00:00 2001 From: Mikhail Gordeev Date: Wed, 15 Feb 2023 17:46:48 +0300 Subject: [PATCH] Remove documentation for all installed to distroless-builder packages --- org/alt/distroless-builder/Dockerfile.template | 1 + 1 file changed, 1 insertion(+) 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