Docker images should only contain necessary data. The package index is optional for the correct working of the installed software. Storing an index
also increases the size of the Docker image. It should be reduced to speed up deployments and reduce storage and bandwidth.