mirror of
https://github.com/thegeeklab/drone-admin.git
synced 2024-11-15 04:00:40 +00:00
23 lines
828 B
Docker
23 lines
828 B
Docker
FROM --platform=$BUILDPLATFORM golang:1.20@sha256:4dd688d42e7c0af5564b96105b11cfc6c6264fa94224234bf6d9f34edd06c18b as build
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
|
|
ADD . /src
|
|
WORKDIR /src
|
|
|
|
RUN make build
|
|
|
|
FROM alpine:3.17@sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
LABEL org.opencontainers.image.title="drone-admin"
|
|
LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-admin"
|
|
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-admin"
|
|
LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-admin"
|
|
|
|
COPY --from=build /src/dist/drone-admin /bin/drone-admin
|
|
ENTRYPOINT [ "/bin/drone-admin" ]
|