lint_dockerfile
Lint Dockerfiles statically against 28 rules to detect unpinned images, insecure commands, and cache-busting issues, returning line-numbered rule IDs, severities, explanations, and concrete fixes.
Instructions
Lint a Dockerfile with 28 rules (IDs DL1001-DL1028). Each finding has a rule ID, severity
(error/warning/info), the line of the instruction, an explanation, and a concrete fix.
Covers unpinned/latest tags, apt/pip/apk/yum hygiene, root user, ADD vs COPY, COPY-before-install
cache busting, secrets in ENV/ARG/RUN (values are never echoed), curl|sh, HEALTHCHECK,
shell-form CMD/ENTRYPOINT, WORKDIR, sudo, chmod 777 and COPY of node_modules/.git.
Suppress with # dockerlint-ignore: DL1003 above an instruction. Never builds anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |