Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup apt including all caches in the end of the build
Browse files Browse the repository at this point in the history
okalachev committed Apr 15, 2024
1 parent f9026fa commit f4014f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builder/image-validate.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f4014f3

Please sign in to comment.