We want to use the "docker" version since the binary won't be installed.
https://github.com/hadolint/hadolint
Example with pre-commit:
https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md#version-control
Checkout the online version:
https://hadolint.github.io/hadolint/
There are many ways it can be done and example below on Sedona:
apache/sedona#2541
So the "docker" based hooks do run on the GitHub Actions CI.
Hadolint has a config file