moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
7.85k stars 1.09k forks source link

Update PrintLintViolations to print the build errors that occur #5026

Closed daghack closed 2 weeks ago

daghack commented 3 weeks ago

Adds printing of a build error to the output of PrintLintViolations.

Build Error: dockerfile parse error on line 6: unknown instruction: PUN (did you mean RUN?)
Dockerfile:6
--------------------
   4 |     FROM scratch AS second
   5 |     COPY $app .
   6 | >>> PUN
   7 |
--------------------