From a8a36da0a52a71aa4e2d8e3d52d0283d3683a79c Mon Sep 17 00:00:00 2001 From: Matt Heckathorn Date: Mon, 3 Mar 2025 09:09:41 -0500 Subject: [PATCH] build: modify makefile to build multiarch locally --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f88c6b0..26ae335 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,11 @@ export WORK_DIR = . build: build2 build2: - docker build --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy -t $(IMAGE_NAME):latest -f Dockerfile . + docker buildx build --platform linux/amd64,linux/arm64 --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy -t $(IMAGE_NAME):latest -f Dockerfile . docker tag $(IMAGE_NAME):latest $(IMAGE_NAME):2 build3: - docker build --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy --build-arg FIXBUF_VERSION=3.0.0.alpha2 -t $(IMAGE_NAME):3 -f Dockerfile . + docker buildx build --platform linux/amd64,linux/arm64 --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy --build-arg FIXBUF_VERSION=3.0.0.alpha2 -t $(IMAGE_NAME):3 -f Dockerfile . test: docker rm -f $(SOFTWARE_NAME)