Skip to content

Commit d0d677c

Browse files
committed
make: try adding platform option
1 parent 4cdcaf1 commit d0d677c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ else
1818
BASE_IMAGE = ubuntu:$(UBUNTU_VERSION)
1919
endif
2020

21+
PLATFORM_OPTION = --platform $(ARCH)
22+
2123
LOCAL_ISHOCON_BASE_IMAGE = ishocon2-app-base:latest
2224

2325
build-base:
2426
docker build \
27+
$(PLATFORM_OPTION) \
2528
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
2629
-f ./docker/app/base/Dockerfile \
2730
-t $(LOCAL_ISHOCON_BASE_IMAGE) \
2831
-t $(UNAME)/ishocon2-app-base:latest . --no-cache --progress=plain;
2932

3033
build-bench:
3134
docker build \
35+
$(PLATFORM_OPTION) \
3236
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
3337
-f ./docker/benchmarker/Dockerfile \
3438
-t ishocon2-bench:latest \
@@ -37,6 +41,7 @@ build-bench:
3741
build-app: change-lang build-base
3842
ISHOCON_APP_LANG=$(ISHOCON_APP_LANG:python)
3943
docker build \
44+
$(PLATFORM_OPTION) \
4045
--build-arg BASE_IMAGE=$(LOCAL_ISHOCON_BASE_IMAGE) \
4146
-f ./docker/app/$(ISHOCON_APP_LANG)/Dockerfile \
4247
-t ishocon2-app-$(ISHOCON_APP_LANG):latest \

0 commit comments

Comments
 (0)