mailcow-dockerized icon indicating copy to clipboard operation
mailcow-dockerized copied to clipboard

apk used with no cache and cache update arg

Open Zoey2936 opened this issue 10 months ago • 0 comments

Summary

I've looked into some Dockerfiles and found: apk add --update --no-cache, which means you don't use the local cache, but at the same time update it, while not using it. I think you don't want a local cache and because of this you should remove the --update arg. (see the clamd Dockerfile as an example)

Motivation

Removing the --update arg will remove the apk index cache inside the docker image and will make it slightly slower

Additional context

https://github.com/mailcow/mailcow-dockerized/blob/master/data/Dockerfiles/clamd/Dockerfile

Zoey2936 avatar Apr 04 '24 08:04 Zoey2936