Docker Images= Package Upgrades and Security updates

thanks for your answer. I dont understand this part images get bloated when you do an upgrade while building the image. Is there another way for you to explain this to me?
thanks