File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ ifeq ($(do_default),true)
50
50
endif
51
51
endif
52
52
53
+ PLATFORM ?= ${PLATFORM}
53
54
54
55
# The repository and image names default to the official but can be overriden
55
56
# via environment variables.
@@ -77,11 +78,11 @@ update:
77
78
define build-version
78
79
build-$1:
79
80
ifeq ($(do_default ) ,true)
80
- $(DOCKER) build --pull -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1) $1
81
+ $(DOCKER) build --pull --platform=$(PLATFORM) - t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1) $1
81
82
endif
82
83
ifeq ($(do_alpine ) ,true)
83
84
ifneq ("$(wildcard $1/alpine) ","")
84
- $(DOCKER) build --pull -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1)-alpine $1/alpine
85
+ $(DOCKER) build --pull --platform=$(PLATFORM) - t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1)-alpine $1/alpine
85
86
endif
86
87
endif
87
88
endef
You can’t perform that action at this time.
0 commit comments