-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.multiarch
38 lines (26 loc) · 1.18 KB
/
Dockerfile.multiarch
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
27
28
29
30
31
32
33
34
35
36
37
38
FROM --platform=$BUILDPLATFORM docker.io/golang:1.22@sha256:f43c6f049f04cbbaeb28f0aad3eea15274a7d0a7899a617d0037aec48d7ab010 as build
ARG TARGETOS
ARG TARGETARCH
ADD . /src
WORKDIR /src
RUN make build
FROM docker.io/alpine:3.19@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
LABEL maintainer="ownCloud DevOps <[email protected]>"
LABEL org.opencontainers.image.authors="ownCloud DevOps <[email protected]>"
LABEL org.opencontainers.image.title="drone-fork-approval"
LABEL org.opencontainers.image.url="https://github.com/owncloud-ci/drone-fork-approval"
LABEL org.opencontainers.image.source="https://github.com/owncloud-ci/drone-fork-approval"
LABEL org.opencontainers.image.documentation="https://github.com/owncloud-ci/drone-fork-approval"
ARG TARGETOS
ARG TARGETARCH
RUN addgroup -g 1001 -S app && \
adduser -S -D -H -u 1001 -s /sbin/nologin -G app -g app app
RUN apk --update add --no-cache ca-certificates && \
apk upgrade --no-cache libcrypto3 libssl3 && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
COPY --from=build /src/dist/drone-fork-approval /bin/drone-fork-approval
EXPOSE 3000
USER app
ENTRYPOINT ["/bin/drone-fork-approval"]
CMD []