Commit cb09d0ba by Yonatan Kahana

build: build multiarch image with golang 1.18

parent c0409446
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"]
\ No newline at end of file
ENTRYPOINT ["/app/main"]
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