Skip to main content
Glama

Dockerfile Linter

dockerfile-linter
Read-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
NameRequiredDescriptionDefault
dockerfileYesDockerfile content (full or partial), up to 8,192 characters.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
issuesYes
severityYes
next_stepYes
info_countYes
line_countYes
error_countYes
issue_countYes
next_step_urlYes
warning_countYes
why_follow_upYes
interpretationYes
affiliate_contextNo
computation_basisYes
instruction_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / dockerfile / description
      Previous value: -"Dockerfile content (full or partial)"New value: +"Dockerfile content (full or partial), up to 8,192 characters."
    • changedInput schema / properties / dockerfile / maxLength
      Previous value: -200000New value: +8192
    • addedOutput schema / properties / error_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / info_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / instruction_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / issues / items / properties / code
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / issues / items / properties / severity
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / issues / items / required
      Previous value: -[
      -  "issue",
      -  "line",
      -  "suggestion"
      -]New value: +[
      +  "code",
      +  "issue",
      +  "line",
      +  "severity",
      +  "suggestion"
      +]
    • addedOutput schema / properties / line_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / warning_count
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "computation_basis",
      -  "interpretation",
      -  "issue_count",
      -  "issues",
      -  "next_step",
      -  "next_step_url",
      -  "severity",
      -  "why_follow_up"
      -]New value: +[
      +  "computation_basis",
      +  "error_count",
      +  "info_count",
      +  "instruction_count",
      +  "interpretation",
      +  "issue_count",
      +  "issues",
      +  "line_count",
      +  "next_step",
      +  "next_step_url",
      +  "severity",
      +  "warning_count",
      +  "why_follow_up"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / dockerfile / maxLength
      Added value: +200000
  3. Changed1 schema field changed
    • addedInput schema / properties / dockerfile / examples
      Added value: +[
      +  "example"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "affiliate_context": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "affiliate": {
      +          "type": "string"
      +        },
      +        "cta_label": {
      +          "type": "string"
      +        },
      +        "disclosure": {
      +          "type": "string"
      +        },
      +        "framing": {
      +          "type": "string"
      +        },
      +        "posture": {
      +          "enum": [
      +            "secondary"
      +          ],
      +          "type": "string"
      +        },
      +        "slot_id": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "variant": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "affiliate",
      +        "cta_label",
      +        "disclosure",
      +        "framing",
      +        "posture",
      +        "slot_id",
      +        "url",
      +        "variant"
      +      ],
      +      "type": "object"
      +    },
      +    "computation_basis": {
      +      "type": "string"
      +    },
      +    "interpretation": {
      +      "type": "string"
      +    },
      +    "issue_count": {
      +      "type": "number"
      +    },
      +    "issues": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "issue": {
      +            "type": "string"
      +          },
      +          "line": {
      +            "type": "number"
      +          },
      +          "suggestion": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "issue",
      +          "line",
      +          "suggestion"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "next_step_url": {
      +      "type": "string"
      +    },
      +    "severity": {
      +      "type": "string"
      +    },
      +    "why_follow_up": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "computation_basis",
      +    "interpretation",
      +    "issue_count",
      +    "issues",
      +    "next_step",
      +    "next_step_url",
      +    "severity",
      +    "why_follow_up"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  6. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources