# Common rules & variables for building Docker images. # Calling makefiles just need to set IMAGE then include this file, e.g.,: # IMAGE = foobar # include ../docker.make ARM=arm64 INTEL=amd64 image: Dockerfile docker buildx create --use docker buildx build --tag $(IMAGE):latest --platform linux/$(ARM),linux/$(INTEL) --push . docker buildx rm @touch $@ debug: @echo "IMAGE=$(IMAGE)" @echo "ARM=$(ARM)" @echo "INTEL=$(INTEL)"