Dockerfile Linter
dockerfile-linterRead-onlyIdempotent
Lint a Dockerfile against a rule-based subset of Hadolint checks: untagged or :latest base images, interactive or unpinned apt-get installs, apt list cleanup, apk cache, ADD for local files, shell-form CMD/ENTRYPOINT, running as root and a missing HEALTHCHECK. Lines joined with a trailing backslash count as one instruction, and each issue reports its line in the original file.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dockerfile | Yes | Dockerfile content (full or partial), up to 8,192 characters. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issues | Yes | ||
| severity | Yes | ||
| next_step | Yes | ||
| info_count | Yes | ||
| line_count | Yes | ||
| error_count | Yes | ||
| issue_count | Yes | ||
| next_step_url | Yes | ||
| warning_count | Yes | ||
| why_follow_up | Yes | ||
| interpretation | Yes | ||
| affiliate_context | No | ||
| computation_basis | Yes | ||
| instruction_count | Yes |