support for disabling cache
It would be nice to have an --no-cache
option to apk so we avoid
apk-install
wrapper scripts that only does
apk add --update <packages> && rm -rf /var/cache/apk/*
See
https://github.com/gliderlabs/docker-alpine/pull/18\#issuecomment-107515657
(from redmine: issue id 4905, created on 2015-11-30, closed on 2016-07-28)
- Changesets:
- Revision c43bfed8 by Natanael Copa on 2015-12-07T12:50:32Z:
db: add support for --no-cache
Implement --no-cache. The index is read directly from network and not
cached. This is useful for docker, where you install a set of packages
and directly after purge the cache. (see
https://github.com/gliderlabs/docker-alpine/blob/1fc9e59d1689fc4eaf930ec66389fe58062fccec/builder/scripts/apk-install)
fixes #4905
- Revision 95c8dee6aadee2f1df56e0a206b1a7ab3fab6224 by Natanael Copa on 2015-12-07T13:20:22Z:
main/apk-tools: backport support for --no-cache
ref #4905