Dockerfile to build a minimal image containing cppcheck.
Ideally, by default, it builds the latest cppcheck release, currently 2.0.
To build the image with the default version
docker build -t cppcheck
To build the image with a given version, e.g. 1.90
docker build --build-arg VERSION=1.90 -t cppcheck
docker run --rm -it -v $(pwd):/src cppcheck