What is "BuildKit's" cache mount feature (e.g. "RUN --mount=type=cache,target=/root/.cache") used for?
Correct! Well done.
Incorrect.
The correct answer is B) It persists a directory (like a package manager cache) across builds without including it in the final image layer, speeding up repeated builds (e.g. avoiding re-downloading dependencies) while keeping the image itself free of cache artifacts
Correct Answer
It persists a directory (like a package manager cache) across builds without including it in the final image layer, speeding up repeated builds (e.g. avoiding re-downloading dependencies) while keeping the image itself free of cache artifacts
Cache mounts let build steps (like "npm install" or "pip install") reuse downloaded packages between builds via a persistent cache directory, without that cache becoming part of any image layer, combining fast rebuilds with small final images.