this helps us to avoid installing unneeded packages and removes the package cache from the images to keep them less bloated.