We build Debian images using the debos tool, which runs debootstrap and constructs the image in a virtual machine.
debos is available in modern Debian-based distributions:
sudo apt install debos
To build an image, it is easiest to use the build-image.sh script in the parent directory.