Docker based build environment example based on Dmitry Danilov's post
# Inside the project folder
mkdir build && cd build
cmake ..
make
# Inside the project folder
make build-docker-deps-image
make
The executable should be inside the build folder and can be run with
./a.out