Cache invalidation for RUN instructions
The cache forRUNinstructions isn't invalidated automatically during
the next build. The cache for an instruction likeRUN apt-get dist-upgrade -ywill be reused during the next build. The
cache forRUNinstructions can be invalidated by using the--no-cacheflag, for exampledocker build --no-cache.
See theDockerfile Best Practices
guidefor more information.
The cache forRUNinstructions can be invalidated byADDandCOPYinstructions.