What does `# syntax=docker/dockerfile:1` do?
AdvancedConceptDockerfile Instructions & Builds
Answer
It tells BuildKit to fetch that frontend image and parse the Dockerfile with it, so you get new Dockerfile features (heredocs, --mount, COPY --link, --chmod) independent of the installed Docker version. The 1 tag tracks the latest stable 1.x.