Skip to content

Commit 21bd9ef

Browse files
committed
Reduce image size
rm falcoctl in the same image layer, divides the image size by 2. Signed-off-by: Julien Francoz <[email protected]>
1 parent a9e8063 commit 21bd9ef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docker/falco/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ RUN FALCO_VERSION_URLENCODED=$(echo -n ${FALCO_VERSION}|jq -sRr @uri) && \
3434
mv falco-${FALCO_VERSION}-$(uname -m) falco && \
3535
rm -rf /falco/usr/src/falco-* && \
3636
cp -r /falco/* / && \
37-
rm -rf /falco
37+
rm -rf /falco && \
38+
rm -rf /usr/bin/falcoctl /etc/falcoctl/
39+
3840

3941
# Change the falco config within the container to enable ISO 8601 output.
4042
ADD ./config/falco.iso8601_timeformat.yaml /etc/falco/config.d/
4143

42-
# Falcoctl is not included here.
43-
RUN rm -rf /usr/bin/falcoctl /etc/falcoctl/
44-
4544
CMD ["/usr/bin/falco"]

0 commit comments

Comments
 (0)