Set platform during build and register binfmt interpreters in memory
This commit is contained in:
4
Makefile
4
Makefile
@@ -76,6 +76,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
|
||||
@@ -91,6 +92,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 '$@' ./
|
||||
|
||||
##################################################
|
||||
@@ -194,7 +196,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
|
||||
|
||||
Reference in New Issue
Block a user