0
0
mirror of https://github.com/thegeeklab/wp-git-action.git synced 2024-10-18 17:10:40 +00:00
wp-git-action/Containerfile.multiarch

26 lines
957 B
Plaintext
Raw Normal View History

2024-09-07 00:53:25 +00:00
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.23@sha256:4a3c2bcd243d3dbb7b15237eecb0792db3614900037998c2cd6a579c46888c1e as build
ARG TARGETOS
ARG TARGETARCH
ADD . /src
WORKDIR /src
RUN make build
2024-09-07 00:53:25 +00:00
FROM docker.io/library/alpine:3.20@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
2022-11-27 13:33:39 +00:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="wp-git-action"
LABEL org.opencontainers.image.url="https://github.com/thegeeklab/wp-git-action"
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/wp-git-action"
LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/wp-git-action"
2022-11-27 13:33:39 +00:00
RUN apk --update add --no-cache git rsync && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
COPY --from=build /src/dist/wp-git-action /bin/wp-git-action
ENTRYPOINT ["/bin/wp-git-action"]