Hadolint #
Hadolint is a linter for Dockerfiles giving advice on best practice, detecting duplication or unnecessary statements, missing cleanup and also style.
I've found it really handy for working on other people's Dockerfiles particularly when they are of an unknown vintage but I've also found more than a couple of things in my hobby files.
I'm running it with Podman and have definitely been caught out by having to pipe the file:
1podman run --rm -i docker.io/hadolint/hadolint < Dockerfile
The VSCode integration also seems really good.