Docker does not support cache bust instruction to force clear the cache. However, we can use moby/moby#1996 (comment) to bust the cache.
We need image-factory to inject CACHE_DATE variable with value set to epoch time as part of build-args.
Use Case:
- Java projects need the ability to rebuild projects even when there is no code change (change in snapshot dependencies).
Docker does not support cache bust instruction to force clear the cache. However, we can use moby/moby#1996 (comment) to bust the cache.
We need image-factory to inject CACHE_DATE variable with value set to epoch time as part of build-args.
Use Case: