2017/12: times have changed and the author now provides a very nice Docker image: https://github.com/hadolint/hadolint
This container is smaller than the original one from Lukas Martinelli (96MB vs 1.7GB).
It's based on debian:jessie-slim and does the minimum.
Usage is basically the following:
$ docker run --rm -i sjourdan/hadolint < Dockerfile
- N/A
$ make lint
$ make build
The Docker Hub build is building versions across tags, so tag releases properly:
$ git tag <hadolint version>
$ git push --tags