File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 18
18
BASE_IMAGE = ubuntu:$(UBUNTU_VERSION)
19
19
endif
20
20
21
+ PLATFORM_OPTION = --platform $(ARCH )
22
+
21
23
LOCAL_ISHOCON_BASE_IMAGE = ishocon2-app-base:latest
22
24
23
25
build-base :
24
26
docker build \
27
+ $(PLATFORM_OPTION ) \
25
28
--build-arg BASE_IMAGE=$(BASE_IMAGE ) \
26
29
-f ./docker/app/base/Dockerfile \
27
30
-t $(LOCAL_ISHOCON_BASE_IMAGE ) \
28
31
-t $(UNAME ) /ishocon2-app-base:latest . --no-cache --progress=plain;
29
32
30
33
build-bench :
31
34
docker build \
35
+ $(PLATFORM_OPTION ) \
32
36
--build-arg BASE_IMAGE=$(BASE_IMAGE ) \
33
37
-f ./docker/benchmarker/Dockerfile \
34
38
-t ishocon2-bench:latest \
@@ -37,6 +41,7 @@ build-bench:
37
41
build-app : change-lang build-base
38
42
ISHOCON_APP_LANG=$(ISHOCON_APP_LANG:python )
39
43
docker build \
44
+ $(PLATFORM_OPTION ) \
40
45
--build-arg BASE_IMAGE=$(LOCAL_ISHOCON_BASE_IMAGE ) \
41
46
-f ./docker/app/$(ISHOCON_APP_LANG ) /Dockerfile \
42
47
-t ishocon2-app-$(ISHOCON_APP_LANG ) :latest \
You can’t perform that action at this time.
0 commit comments