Check Dockerfiles
check_dockerfileValidate Dockerfiles for build-breaking syntax, risky root users and secrets, cache-order issues, and base image tag/EOL status, with line-level findings and fixes.
Instructions
Checks Dockerfiles: syntax, what breaks the build (apt-get install without -y, copies outside the context, unknown stages), root users, secrets in ENV/ARG, cache order, and each base image against its registry (tag exists, digest to pin, platforms, last rebuild) and end-of-life dates. Findings have line and fix.
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": {
"files": "<files>"
},
"name": "check_dockerfile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| platform | No | the platform you build for, e.g. linux/arm64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes |