Skip to content
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

Set Dockerfile frontend via the syntax directive #1231

Open
atc0005 opened this issue Oct 18, 2023 · 0 comments
Open

Set Dockerfile frontend via the syntax directive #1231

atc0005 opened this issue Oct 18, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Oct 18, 2023

Overview

Current versions of Docker (and from what I can tell Podman) support using the syntax directive to specify a desired build image for building images. If you don't use this directive then the built-in or default Dockerfile frontend is used.

To retain existing (overall) behavior while allowing new features adding # syntax=docker/dockerfile:1 as the first line in a Dockerfile is the current recommended practice.

I've not researched this sufficiently to determine if there are any downsides.

References

@atc0005 atc0005 added enhancement New feature or request question Further information is requested labels Oct 18, 2023
@atc0005 atc0005 added this to the Future milestone Oct 18, 2023
@atc0005 atc0005 self-assigned this Oct 18, 2023
@atc0005 atc0005 modified the milestones: Future, v0.14.0 Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant