Documentation
¶
Overview ¶
Package dockerlint checks a Dockerfile for the handful of hints that most often cause production trouble and offers a safe patch where one exists.
Index ¶
Constants ¶
View Source
const ( RuleRootUser = "root-user" RuleHealthcheck = "no-healthcheck" RuleMultiStage = "single-stage-build" RuleDockerignor = "no-dockerignore" RuleFloatingTag = "floating-base-tag" SeverityWarn = "warn" SeverityInfo = "info" // NonRootUser is a numeric UID:GID so the patch works on images that ship no named user. NonRootUser = "65532:65532" )
Rule IDs and severities, shared by the API, CLI and UI.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Rule string `json:"rule"`
Severity string `json:"severity"`
Line int `json:"line"`
Message string `json:"message"`
Fixable bool `json:"fixable"`
}
Finding is one hint. Line is 1-based, 0 when it applies to the whole file.
Click to show internal directories.
Click to hide internal directories.