Skip to content

Commit

Permalink
Cleanup apt including all caches in the end of the build
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 16, 2024
1 parent f9026fa commit 4fcd0ea
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
Expand Up @@ -35,5 +35,10 @@ echo "Largest packages installed"
sudo -E sh -c 'apt-get install -y debian-goodies'
dpigs -H -n 100

echo "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 4fcd0ea

Please sign in to comment.