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 docker category.

Last Updated: 2021-05-16

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

rm /var/lib/apt/lists/*