-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Re-open of #1896
There is a very valid use case for wanting to completely disable the cache - Docker.
Best practices for building slim Docker images are to disable or clear caches for all package managers. There is absolutely zero benefit from having cached packages in a Docker image, it just consumes space.
We can of course delete the cache files after in a seperate command - however it seems pretty standard for modern package managers to now offer this as a CLI option, see: PIP, APK, Yarn is also looking at implementing it.
yannoff and bozdoz