-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfile.multiarch
More file actions
26 lines (19 loc) · 996 Bytes
/
Containerfile.multiarch
File metadata and controls
26 lines (19 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.26.2@sha256:1e598ea5752ae26c093b746fd73c5095af97d6f2d679c43e83e0eac484a33dc3 AS build
ARG TARGETOS
ARG TARGETARCH
ADD . /src
WORKDIR /src
RUN make build
FROM docker.io/library/alpine:3.23@sha256:5b10f432ef3da1b8d4c7eb6c487f2f5a8f096bc91145e68878dd4a5019afde11
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"
RUN apk --update add --no-cache git rsync && \
apk upgrade --no-cache zlib && \
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"]