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-11-21
Remove apt lists after you've installed everything. Can save 100mb on a docker image.
rm /var/lib/apt/lists/*