Skip to content

Commit a8a36da

Browse files
committed
build: modify makefile to build multiarch locally
1 parent 9852c06 commit a8a36da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export WORK_DIR = .
1313
build: build2
1414

1515
build2:
16-
docker build --build-arg http_proxy --build-arg https_proxy --build-arg no_proxy -t $(IMAGE_NAME):latest -f Dockerfile .
16+
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 .
1717
docker tag $(IMAGE_NAME):latest $(IMAGE_NAME):2
1818

1919
build3:
20-
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 .
20+
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 .
2121

2222
test:
2323
docker rm -f $(SOFTWARE_NAME)

0 commit comments

Comments
 (0)