File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ WHERE_WHICH ?= which
39
39
40
40
# linux/amd64 or darwin/arm64
41
41
OS_ARCH =$(shell go env GOOS) /$(shell go env GOARCH)
42
+ BUILD_ARCH =linux/amd64
42
43
43
44
IMAGE_TAG ?= $(RELEASE ) _$(DATE )
44
45
KUBECTL_BIN ?= bin/kubectl
@@ -71,7 +72,7 @@ define build_image
71
72
$(info # Building $(IMAGE_NAME ) image...)
72
73
73
74
$(ROOT_DIR ) /scripts/sandbox.py --dockerfile '$(2 ) ' -- \
74
- $(CONTAINER_ENGINE ) build $(CONTAINER_BUILD_CACHE_ARGS ) --label release=${ RELEASE} --tag $(IMAGE_NAME ) --file '$(2 ) ' $(BUILD_ARGS ) {}\;
75
+ $(CONTAINER_ENGINE ) build $(CONTAINER_BUILD_CACHE_ARGS ) --platform= $( BUILD_ARCH ) -- label release=$( RELEASE ) --tag $(IMAGE_NAME ) --file '$(2 ) ' $(BUILD_ARGS ) {}\;
75
76
endef
76
77
77
78
# Push function for the notebook image:
You can’t perform that action at this time.
0 commit comments