How to reduce an image size due to apt

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the containerization category.

Last Updated: 2024-03-27

Remove apt lists after you've installed everything. Can save 100mb on a docker image.

rm /var/lib/apt/lists/*