-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
148 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: Build checks | ||
description: | | ||
BuildKit has built-in support for analyzing your build configuration based on | ||
a set of pre-defined rules for enforcing Dockerfile and building best | ||
practices. | ||
keywords: buildkit, linting, dockerfile, frontend, rules | ||
--- | ||
|
||
BuildKit has built-in support for analyzing your build configuration based on a | ||
set of pre-defined rules for enforcing Dockerfile and building best practices. | ||
Adhering to these rules helps avoid errors and ensures good readability of your | ||
Dockerfile. | ||
|
||
Checks run as a build invocation, but instead of producing a build output, it | ||
performs a series of checks to validate that your build doesn't violate any of | ||
the rules. To run a check, use the `--check` flag: | ||
|
||
```console | ||
$ docker build --check . | ||
``` | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{- range .Rules }} | ||
<tr> | ||
<td><a href="./{{.Filename}}">{{.Name}}</a></td> | ||
<td>{{.Description}}</td> | ||
</tr> | ||
{{- end }} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters