Skip to content

Commit

Permalink
Use platform flag for image building (#13)
Browse files Browse the repository at this point in the history
Use --platform instead of --arch
  • Loading branch information
ipetrov117 authored Jul 19, 2024
1 parent 0bdee75 commit 0ec27f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
.PHONY: docker-build
docker-build: ## Build docker image with the manager.
$(CONTAINER_TOOL) build -t ${IMG} --arch linux/amd64 .
$(CONTAINER_TOOL) build -t ${IMG} --platform linux/amd64 .

.PHONY: docker-push
docker-push: ## Push docker image with the manager.
Expand Down

0 comments on commit 0ec27f4

Please sign in to comment.