dockerfile-cache-lint
Dockerfile build-cache and reproducibility lint — Parses a Dockerfile (continuations, escape directive, heredocs, flags, stages) and reports instruction orderings that defeat the layer cache or make rebuilds drift, for agents writing or reviewing container builds. Cache: COPY of the whole context before a dependency or package install, apt-get update in its own RUN, per-build ARG/ENV values (build date, git sha) declared before later RUN steps. R
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dockerfile": "<dockerfile>"
},
"name": "dockerfile-cache-lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basePin | No | tag (default): flag only missing or :latest tags. digest: flag every base image not pinned by @sha256. | |
| include | No | Rule categories that decide the status. Default cache and reproducibility. | |
| dockerfile | Yes | Dockerfile text, at most 5000 lines and 128 stages. |