Skip to content

Commit

Permalink
fix: multiplatform compatibility (#17)
Browse files Browse the repository at this point in the history
* Fix multiplatform compatibility

Even though the builder image was pulling multi-arch images the final binary was being built for amd64 arch only.

* chore: keep base image label

---------

Co-authored-by: Konstantin Chukhlomin <mail@chuhlomin.com>
  • Loading branch information
pavlospt and chuhlomin committed Dec 9, 2023
1 parent 0ca0022 commit 64d261a
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 @@ -7,7 +7,7 @@ RUN go test -mod=vendor -cover ./...
RUN go build -mod=vendor -o /go/bin/app


FROM gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
FROM --platform=$BUILDPLATFORM gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
# latest-amd64 -> 966f4bd97f611354c4ad829f1ed298df9386c2ec
# https://github.com/GoogleContainerTools/distroless/tree/master/base

Expand Down

0 comments on commit 64d261a

Please sign in to comment.