Unverified Commit dc170612 by Kubernetes Prow Robot Committed by GitHub

Merge pull request #208 from yonatankahana/golang-1.18

build: build multiarch image with golang 1.18
parents e64e04ed cb09d0ba
FROM --platform=$BUILDPLATFORM golang:1.14 as build-env FROM --platform=$BUILDPLATFORM golang:1.18 as build-env
# xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM # xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM
# based on TARGETPLATFORM provided by Docker. # based on TARGETPLATFORM provided by Docker.
...@@ -18,4 +18,4 @@ FROM --platform=$TARGETPLATFORM alpine:3.12 ...@@ -18,4 +18,4 @@ FROM --platform=$TARGETPLATFORM alpine:3.12
RUN apk update --no-cache && apk add ca-certificates RUN apk update --no-cache && apk add ca-certificates
COPY --from=build-env /bin/main /app/main COPY --from=build-env /bin/main /app/main
ENTRYPOINT ["/app/main"] ENTRYPOINT ["/app/main"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment