Surprisingly enough, if your primary motivation for doing this is to save system resources, it might be misguided. ubuntu-base docker images are slimmer than contemporary debian slim, even, though debian seems to have been closing the gap recently - I recall the discrepancy as larger. Below shows image sizes in MB as of today: