Dockerfile for building static version of qemu
DOCKER_BUILDKIT=1 docker build -t qemu-static \
https://github.com/snizovtsev/qemu-static-build.git#v1.0
git clone --recurse-submodules \
https://github.com/snizovtsev/qemu-static-build.git
cd qemu-static-build
DOCKER_BUILDKIT=1 docker build . -t qemu-static
# or podman build . -t qemu-static
docker run --rm -it qemu-static --version
docker run --rm -it -v $PWD/ubuntu.qcow2:/vm.img qemu-static
docker create --name qemu-static qemu-static
docker cp qemu-static:/opt/ qemu-dist
docker rm qemu-static