Résumé

TL;DR The contents of directories mounted with –mount=type=cache are not stored in the docker image, so it makes sense to cache intermediate directories, rather than target ones. In dockerfile:1.

Lire l'article complet