From 8f0e5c3965f5362ad250e0bcdd44fc0627dfe459 Mon Sep 17 00:00:00 2001 From: Filip Matzner Date: Fri, 16 Oct 2020 01:18:03 +0200 Subject: [PATCH] Add missing hook to archlinuxarm --- dockerfiles/archlinuxarm/99-cleanup.hook | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dockerfiles/archlinuxarm/99-cleanup.hook diff --git a/dockerfiles/archlinuxarm/99-cleanup.hook b/dockerfiles/archlinuxarm/99-cleanup.hook new file mode 100644 index 0000000..5e33828 --- /dev/null +++ b/dockerfiles/archlinuxarm/99-cleanup.hook @@ -0,0 +1,10 @@ +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = * + +[Action] +Description = Cleaning up files not needed in a container... +When = PostTransaction +Exec = /bin/sh -c "/usr/bin/rm -rf /boot /usr/share/man /usr/share/doc /usr/share/gtk-doc /usr/share/info /var/cache/pacman/pkg /usr/lib/udev/hwdb.d /usr/lib/udev/hwdb.bin /usr/lib/libgo.so* /usr/lib/systemd /usr/lib/python*/test; find /usr/share/locale -name '*.mo' -type f -exec rm {} \;"