WIP: Support multi-platform amd64, arm64 host images

This commit is contained in:
Matt McCormick 2024-03-25 22:11:11 -04:00
parent 55d275535c
commit ba27b1fc51

View File

@ -118,7 +118,8 @@ $(GEN_IMAGE_DOCKERFILES) Dockerfile: %Dockerfile: %Dockerfile.in $(DOCKER_COMPOS
web-wasm: web-wasm/Dockerfile web-wasm: web-wasm/Dockerfile
mkdir -p $@/imagefiles && cp -r imagefiles $@/ mkdir -p $@/imagefiles && cp -r imagefiles $@/
cp -r test web-wasm/ cp -r test web-wasm/
$(DOCKER) build -t $(ORG)/web-wasm:$(TAG) \ $(DOCKER) buildx build -t $(ORG)/web-wasm:$(TAG) \
--platform linux/amd64,linux/arm64 \
-t $(ORG)/web-wasm:latest \ -t $(ORG)/web-wasm:latest \
--build-arg IMAGE=$(ORG)/web-wasm \ --build-arg IMAGE=$(ORG)/web-wasm \
--build-arg VERSION=$(TAG) \ --build-arg VERSION=$(TAG) \