Skip to content

Commit fa9f656

Browse files
author
Steve Scaffidi
committed
fixed the docker build
1 parent 571b1af commit fa9f656

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ RUN go mod download
1313

1414
# Copy the go source
1515
COPY cmd/main.go cmd/main.go
16-
COPY api/ api/
17-
COPY internal/controller/ internal/controller/
16+
COPY internal/ internal/
1817

1918
# Build
2019
# the GOARCH has not a default value to allow the binary be built according to the host where the command

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ docker-push: ## Push docker image with the manager.
154154
# - have enabled BuildKit. More info: https://docs.docker.com/develop/develop-images/build_enhancements/
155155
# - be able to push the image to your registry (i.e. if you do not set a valid value via IMG=<myregistry/image:<tag>> then the export will fail)
156156
# To adequately provide solutions that are compatible with multiple platforms, you should consider using this option.
157-
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
157+
PLATFORMS ?= linux/arm64,linux/amd64 #,linux/s390x,linux/ppc64le
158158
.PHONY: docker-buildx
159159
docker-buildx: ## Build and push docker image for the manager for cross-platform support
160160
# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile

0 commit comments

Comments
 (0)