File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
101
101
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
102
102
.PHONY : docker-build
103
103
docker-build : # # Build docker image with the manager.
104
- $(CONTAINER_TOOL ) build -t ${IMG} .
104
+ $(CONTAINER_TOOL ) build --platform linux/amd64 - t ${IMG} .
105
105
106
106
.PHONY : docker-push
107
107
docker-push : # # Push docker image with the manager.
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ DSNEXEC_IMG ?= ghcr.io/infobloxopen/db-controller/dsnexec:${GIT_COMMIT}
21
21
22
22
docker-build-%: target=$(@:docker-build-%=%)
23
23
docker-build-%: .id
24
- cd $(target) && $(CONTAINER_TOOL) build -t ghcr.io/infobloxopen/$(target):$(GIT_COMMIT) .
24
+ cd $(target) && $(CONTAINER_TOOL) build \
25
+ --platform linux/amd64 \
26
+ -t ghcr.io/infobloxopen/$(target):$(GIT_COMMIT) .
25
27
26
28
docker-push-%: target=$(@:docker-push-%=%)
27
29
docker-push-%: .id
You can’t perform that action at this time.
0 commit comments