diff --git a/Makefile b/Makefile index c6fed6c..c749641 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,7 @@ $(IMAGE_AMD64_DOCKERFILE): $(DOCKERFILE_TEMPLATE) '$(DOCKER)' build $(IMAGE_BUILD_OPTS) \ --tag '$(IMAGE_NAME):$(IMAGE_VERSION)-amd64' \ --tag '$(IMAGE_NAME):latest-amd64' \ + --platform linux/amd64 \ --file '$@' ./ .PHONY: build-arm64v8-image @@ -85,6 +86,7 @@ $(IMAGE_ARM64V8_DOCKERFILE): $(DOCKERFILE_TEMPLATE) '$(DOCKER)' build $(IMAGE_BUILD_OPTS) \ --tag '$(IMAGE_NAME):$(IMAGE_VERSION)-arm64v8' \ --tag '$(IMAGE_NAME):latest-arm64v8' \ + --platform linux/arm64/v8 \ --file '$@' ./ ################################################## @@ -188,7 +190,7 @@ push-cross-manifest: .PHONY: binfmt-register binfmt-register: - '$(DOCKER)' run --rm --privileged docker.io/hectorm/qemu-user-static:latest --reset + '$(DOCKER)' run --rm --privileged docker.io/hectorm/qemu-user-static:latest --reset --persistent yes ################################################## ## "version" target