docs: explain when RUN cache gets invalidated

This adds a few lines to the RUN Dockerfile docs to explain how to bypass the RUN caching and how ADD can also invalidate the cache for these instructions.

Fixes #3313