Skip to content

Commit

Permalink
Build platform independant go binary (#291)
Browse files Browse the repository at this point in the history
tested on minikube --driver=qemu on M1 mach, arm64, image is pulled succesfully, but binary fails to run with error
exec /bin/agent: exec format error

this should fix it
  • Loading branch information
koncar authored Nov 17, 2023
1 parent 6a65eb6 commit 662c5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY Makefile /go/src/github.com/theketchio/ketch/

# Build
RUN make generate
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager cmd/manager/main.go
RUN CGO_ENABLED=0 go build -a -o manager cmd/manager/main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Expand Down

0 comments on commit 662c5d3

Please sign in to comment.