2023-03-25 08:13:56 +00:00
|
|
|
FROM --platform=$BUILDPLATFORM golang:1.20@sha256:1724dc3128e2e63f0bc3e055fe4fa478d67f6da4bd95c0e69690f6435f658804 as build
|
2023-01-14 21:42:00 +00:00
|
|
|
|
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
|
|
|
|
|
|
|
ADD . /src
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
RUN make build
|
|
|
|
|
2023-03-13 19:34:28 +00:00
|
|
|
FROM alpine:3.17@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517
|
2020-09-19 22:00:34 +00:00
|
|
|
|
2021-01-17 19:14:01 +00:00
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
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"
|
2020-09-19 22:00:34 +00:00
|
|
|
|
2023-01-14 21:42:00 +00:00
|
|
|
COPY --from=build /src/dist/drone-github-comment /bin/drone-github-comment
|
2022-04-25 10:53:45 +00:00
|
|
|
ENTRYPOINT ["/bin/drone-github-comment"]
|