Do you know that in "official" Ubuntu docker image, they have a few tweaks baked in. For example, they have a post install hook to remove *.deb files., they have suggest auto-removed already so you don't really have to type it, etc... among other things.