Avoid cache in docker build

Is it possible to avoid using cache in docker build ?
Solution:
yeah I think it might be because in my dockerfile I do a git clone, since the only thing that changes is in the repo cloned, the cache is used
Jump to solution
6 Replies
Percy
Percyβ€’14mo ago
Project ID: 9b3b4e99-9728-4ff4-83b1-806e04dbd020
Anthony πŸ¦…
Anthony πŸ¦…OPβ€’14mo ago
9b3b4e99-9728-4ff4-83b1-806e04dbd020
Brody
Brodyβ€’14mo ago
layers are only cached if they haven't changed, your problem is likely something else what issues are you running into?
Solution
Anthony πŸ¦…
Anthony πŸ¦…β€’14mo ago
yeah I think it might be because in my dockerfile I do a git clone, since the only thing that changes is in the repo cloned, the cache is used
Brody
Brodyβ€’14mo ago
send the dockerfile please?
Anthony πŸ¦…
Anthony πŸ¦…OPβ€’14mo ago
I fixed it, it was the issue I was saying
Want results from more Discord servers?
Add your server