Hadolint is a smarter Dockerfile linter that helps you build best practice Docker images.
-
Install Hadolint
brew install hadolint
- CLI
hadolint Dockerfiledocker run --rm -i ghcr.io/hadolint/hadolint < DockerfileList of rules
# hadolint ignore=DL3003,DL3006,SC1035
FROM ubuntu
RUN cd /tmp && echo "foo"