1
0

Merge pull request #208 from yonatankahana/golang-1.18

build: build multiarch image with golang 1.18
This commit is contained in:
Kubernetes Prow Robot
2022-05-31 20:47:04 -07:00
committed by GitHub

View File

@@ -1,4 +1,4 @@
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
# based on TARGETPLATFORM provided by Docker.
@@ -18,4 +18,4 @@ FROM --platform=$TARGETPLATFORM alpine:3.12
RUN apk update --no-cache && apk add ca-certificates
COPY --from=build-env /bin/main /app/main
ENTRYPOINT ["/app/main"]
ENTRYPOINT ["/app/main"]