Dockerfile Linter – Haskell

Updated: 18 August 2023

A smarter Dockerfile linter that helps you build best practice Docker images. The linter parses the Dockerfile into an AST and performs rules on top of the AST. It stands on the shoulders of ShellCheck to lint the Bash code inside RUN instructions.

Use online at https://hadolint.github.io/hadolint

Run in a Docker container

docker run --rm -i hadolint/hadolint < Dockerfile

Leave a comment