Docker - Image Optimization
Which is the correct way to specify a cache mount in a Dockerfile RUN instruction to cache dependencies?
--mount=type=cache.--mount=type=cache,target=.... RUN --cache=type=mount,target=/root/.cache npm install uses an invalid flag --cache=. RUN --mount=cache,target=/root/.cache npm install misses type= keyword. RUN --mount=type=volume,target=/root/.cache npm install uses type=volume which is not for build cache.type=cache [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions