Skip to content

Conversation

@krewi1
Copy link
Contributor

@krewi1 krewi1 commented Jan 30, 2025

This fix ensures that the Dockerfile parser checks for the presence of at least one FROM instruction. If no FROM instructions are found, an error is thrown with a clear message, guiding the user to fix the issue by adding a valid FROM statement. This improves robustness and helps users quickly identify and resolve misconfigured or incomplete Dockerfiles.

@krewi1 krewi1 requested a review from a team as a code owner January 30, 2025 11:47
@krewi1
Copy link
Contributor Author

krewi1 commented Jan 30, 2025

@microsoft-github-policy-service agree

Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eljog eljog enabled auto-merge (squash) February 28, 2025 21:44
@eljog eljog merged commit 016704a into devcontainers:main Feb 28, 2025
18 checks passed
@felipecrs
Copy link

Unfortunately this PR actually prevents a legit use case #991.

IMO using docker build --check would make better sense than implementing its own checker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants