The Docker and CMake examples for Boost C++ library.
$ BOOST_VERSION=1.84.0
$ docker build -f docker/boost.Dockerfile --build-arg BOOST_VERSION=${BOOST_VERSION} --tag=boost:${BOOST_VERSION} .
$ sudo apt-get install -y binfmt-support qemu-user-static
$ docker buildx create --use --name cross-platform-build
$ docker buildx build -f docker/boost.Dockerfile --platform linux/amd64,linux/arm64 -t leimao/boost:${BOOST_VERSION} --push .
$ docker pull leimao/boost:${BOOST_VERSION}
$ docker tag leimao/boost:${BOOST_VERSION} boost:${BOOST_VERSION}
$ docker run -it --rm -v $(pwd):/mnt boost:${BOOST_VERSION}
Inside the Boost Docker container, follow the README in the examples.