From 0b2724450ff12fd32a528e795be7bf945f79dbc2 Mon Sep 17 00:00:00 2001 From: Julien Francoz Date: Wed, 26 Nov 2025 15:18:02 +0100 Subject: [PATCH] Reduce image size rm falcoctl in the same image layer, divides the image size by 2. Signed-off-by: Julien Francoz --- docker/falco/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/falco/Dockerfile b/docker/falco/Dockerfile index 8d4f0b40..92c12536 100644 --- a/docker/falco/Dockerfile +++ b/docker/falco/Dockerfile @@ -34,12 +34,11 @@ RUN FALCO_VERSION_URLENCODED=$(echo -n ${FALCO_VERSION}|jq -sRr @uri) && \ mv falco-${FALCO_VERSION}-$(uname -m) falco && \ rm -rf /falco/usr/src/falco-* && \ cp -r /falco/* / && \ - rm -rf /falco + rm -rf /falco && \ + rm -rf /usr/bin/falcoctl /etc/falcoctl/ + # Change the falco config within the container to enable ISO 8601 output. ADD ./config/falco.iso8601_timeformat.yaml /etc/falco/config.d/ -# Falcoctl is not included here. -RUN rm -rf /usr/bin/falcoctl /etc/falcoctl/ - CMD ["/usr/bin/falco"]