{"uid":"cap_w_J8VNs1RCcL5F7hW9NNW","slug":"dockerfile-security-size-linter-7735bd89","name":"Dockerfile Security & Size Linter","description":"Check a Dockerfile (up to 8,000 characters) for common security and image-size problems: unpinned or :latest base images, running as root, piping downloads into a shell, sensitive values baked into ENV or ARG, ADD from URLs, apt and pip cache left in layers, sudo, chmod 777 and an exposed SSH port. Returns each finding with its line, a severity and a fix, plus a score. Use before building or shipping an image.","url":"https://agent-data-tools.revmesh2074.workers.dev/dockerfile/lint?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["dockerfile"],"properties":{"dockerfile":{"type":"string","description":"Dockerfile contents (up to 8,000 characters)"}}},"responseSchema":{"type":"object","properties":{"score":{"type":"number"},"counts":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"},"medium":{"type":"number"}}},"findings":{"type":"array","items":{"type":"object","properties":{"line":{"type":"number"},"rule":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string"}}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pOwUWAv9ASLQPmOevPpJ6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a Dockerfile for security vulnerabilities and image-size inefficiencies, returning per-line findings with severity ratings and a score.","exampleAgentPrompt":"Can you check this Dockerfile for security problems and size issues — look for things like running as root, unpinned base images, secrets baked into ENV, or apt cache left in layers, and give me a score?","exampleUseCases":[{"title":"Pre-build security gate in CI pipeline","prompt":"Before I build and push this Docker image, run a security lint on my Dockerfile and tell me if there are any high-severity issues like running as root, piped curl installs, or exposed SSH ports."},{"title":"Audit existing Dockerfile for hardening","prompt":"Here's the Dockerfile for our production API service — can you audit it for common security problems like unpinned base images, sensitive values in ENV or ARG, and chmod 777 permissions? Give me each finding with the line number and how to fix it."},{"title":"Check image size hygiene","prompt":"My Docker image is bloated — can you lint this Dockerfile and flag anything that's inflating the image size, like apt or pip caches not being cleaned up, or ADD from URLs instead of COPY?"}],"resultDescription":"Returns a numeric overall score, a count of findings by severity (low/medium/high), and an array of findings each containing the line number, rule name, human-readable message, and severity level. Covers issues like unpinned base images, root execution, shell-piped downloads, secrets in ENV/ARG, URL-based ADD, uncleaned apt/pip caches, sudo, chmod 777, and exposed SSH port.","failureModes":["Dockerfile content exceeds 8,000 character limit — request rejected","Missing required 'dockerfile' parameter — validation error returned","Dockerfile is valid but empty — may return zero findings with a perfect score","False negatives for complex multi-stage builds with unusual syntax","Payment required (x402) if free call quota of 25 is exhausted"],"whenToPreferThis":"Choose this endpoint when you need fast, automated Dockerfile security and size analysis prior to building or shipping a container image. Ideal for CI/CD pipelines, pre-commit hooks, or one-off audits where you want per-line findings with severity and fix guidance rather than a full container scanning suite. Best for Dockerfiles under 8,000 characters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:03:10.207Z","isFirstParty":false,"canonicalSlug":"dockerfile-security-size-linter-7735bd89"}