Skip to content

Commit

Permalink
Add missing hook to archlinuxarm
Browse files Browse the repository at this point in the history
  • Loading branch information
FloopCZ committed Oct 15, 2020
1 parent 97a8a1f commit 8f0e5c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dockerfiles/archlinuxarm/99-cleanup.hook
Original file line number Diff line number Diff line change
@@ -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 {} \;"

0 comments on commit 8f0e5c3

Please sign in to comment.