dockerlean_wasm_audit
Audit Dockerfiles for layer bloat, cache-busting RUN ordering, root user risks, missing multi-stage builds, and excessive image footprint to reduce container size and security exposure.
Instructions
Statically lints and audits Dockerfiles for layer bloat, cache-busting RUN ordering, root user vulnerabilities, missing multi-stage build patterns, and excessive image footprint. Use when: Reviewing container configurations, CI/CD pipeline Dockerfiles, or developer images to minimize image size and security risks. Do not use when: Auditing git diffs or evaluating Terraform infrastructure plans. Alternative: Use agentpr_guard_audit for git diff security, or terracost_blast_evaluate for cloud infrastructure cost deltas. Execution: Runs locally in-memory (<5ms), read-only, idempotent, zero network calls, zero telemetry, air-gapped deterministic.
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": {
"dockerfileContent": "<dockerfileContent>"
},
"name": "dockerlean_wasm_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| licenseKey | No | Optional TopAI Sovereign Pro offline license key (or set TOPAI_LICENSE_KEY env variable). | |
| dockerfileContent | Yes | Full UTF-8 content of the Dockerfile to audit for layer efficiency and security. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report | Yes | Detailed container layer analysis, detected anti-patterns, and severity scores. | |
| markdown | Yes | Formatted Markdown audit report with remediation instructions. | |
| efficiencyNotice | Yes | Overall lean score summary (0-100 scale). |