Skip to content

build: add syntax parser directive to Dockerfile #1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2025
Merged

build: add syntax parser directive to Dockerfile #1186

merged 1 commit into from
Mar 10, 2025

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