Skip to content

Conversation

Marukome0743
Copy link
Contributor

What?

Add syntax parser directive to the first line of the Dockerfile.

Why?

To declare the Dockerfile syntax version to use for the build.
If unspecified, BuildKit uses a bundled version of the Dockerfile frontend.

How?

Append # syntax=docker.io/docker/dockerfile:1 to the top of the Dockerfile.

@buchdag buchdag changed the title chore: add syntax parser directive to Dockerfile build: add syntax parser directive to Dockerfile Mar 10, 2025
@buchdag buchdag added the type/build PR that affect the build system or external dependencies label Mar 10, 2025
@buchdag buchdag merged commit fd84425 into nginx-proxy:main Mar 10, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/build PR that affect the build system or external dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants