Does COPY —-link allow this with BuildKit? In principle it should, in practice I’d guess it ends up pulling the base image.
Since builds usually happen in CI, and pulls happen elsewhere (e.g., a kubernetes node), in the end layers are only downloaded when the resulting container image is actually used.