Skip to content

Commit a634a56

Browse files
committed
chore: add build_arh on the container engine build command
1 parent 82f5dd9 commit a634a56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ WHERE_WHICH ?= which
3939

4040
# linux/amd64 or darwin/arm64
4141
OS_ARCH=$(shell go env GOOS)/$(shell go env GOARCH)
42+
BUILD_ARCH=linux/amd64
4243

4344
IMAGE_TAG ?= $(RELEASE)_$(DATE)
4445
KUBECTL_BIN ?= bin/kubectl
@@ -71,7 +72,7 @@ define build_image
7172
$(info # Building $(IMAGE_NAME) image...)
7273

7374
$(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) {}\;
7576
endef
7677

7778
# Push function for the notebook image:

0 commit comments

Comments
 (0)