Hadolint is a command line tool that helps you ensure your Dockerfiles follow best practices and parses your Dockerfile into an abstract syntax tree (AST).
Thank you for sharing this. I think it will help out incredibly when trying to troubleshoot Dockerfiles. Does it does the same thing for docker-compose.yml files?