This defines an image that is intended to provide a simple way to cross-compile C code for several different OSs and CPU architectures.
The target platforms are as follows:
- Linux x86_64.
- Windows x86_64.
- MacOS aarch64.
export DOCKER_BUILDKIT=1
docker build -t cross-compile:latest .
docker run -v /path/to/my/repo:/home/repo cross-compile:latest --makefile /home/repo/path/to/makefile.mk