Remove package manager index caches in Dockerfile to reduce image size and improve deployment speed. Even in multi-stage builds, ensure no unnecessary cache data is stored. Package indexes are redundant for runtime operation and only increase storage, bandwidth, and deployment time.
3.4 KiB
3.4 KiB