From f4014f3c2d370543a9f2e80c27cbee79e3e0d14a Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 16 Apr 2024 02:46:29 +0300 Subject: [PATCH] Cleanup apt including all caches in the end of the build --- builder/image-validate.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builder/image-validate.sh b/builder/image-validate.sh index c411882843..31c2ff7253 100755 --- a/builder/image-validate.sh +++ b/builder/image-validate.sh @@ -35,5 +35,10 @@ echo "Largest packages installed" sudo -E sh -c 'apt-get install -y debian-goodies' dpigs -H -n 100 +echo_stamp "Cleanup apt" +apt-get autoremove --purge -y +apt-get clean +rm -rf /var/cache/apt/* + echo "Move /etc/ld.so.preload back to its original position" mv /etc/ld.so.preload.disabled-for-build /etc/ld.so.preload