devvkit / dev
Dockerfile Linter
Lint Dockerfiles for best practices: layers, caching, security, size.
Every Dockerfile must start with a FROM instruction.
Rule-based best-practice linting (Dockerfile reference + hadolint guidance). Layer count is an estimate: one per FROM/RUN/COPY/ADD plus the base image. .dockerignore presence cannot be verified from the Dockerfile alone. Runs entirely in your browser.
share this tool
related tools
Lint Dockerfiles against Docker best practices: base image pinning, layer caching order, apt-get hygiene, healthchecks, and secret handling. Get a severity-tagged report with a compliance score.
- -Parses RUN, COPY, ADD, ENV, FROM and more
- -Handles heredocs and line continuations
- -Unpinned base tag and multi-stage warnings
- -apt-get and pip caching rules
- -Secrets-in-ENV and debug-tools detection
- -Score report with copy-to-clipboard summary
- >Reviewing a Dockerfile before it hits CI
- >Teaching container best practices in code review
- >Shrinking image size with layer hints
- >Hardening production images against supply-chain issues