FROM --platform=$BUILDPLATFORM golang:1.20@sha256:1724dc3128e2e63f0bc3e055fe4fa478d67f6da4bd95c0e69690f6435f658804 as build ARG TARGETOS ARG TARGETARCH ADD . /src WORKDIR /src RUN make build FROM alpine:3.17@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 LABEL maintainer="Robert Kaussow " LABEL org.opencontainers.image.authors="Robert Kaussow " LABEL org.opencontainers.image.title="drone-github-comment" LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-github-comment" LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-github-comment" LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-github-comment" COPY --from=build /src/dist/drone-github-comment /bin/drone-github-comment ENTRYPOINT ["/bin/drone-github-comment"]