fix: add labels
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-08 16:28:53 +02:00
parent a25ad8d302
commit e3962a74db
2 changed files with 19 additions and 7 deletions

View File

@ -1,17 +1,29 @@
FROM docker.io/library/golang:1.21.6-alpine3.18
FROM docker.io/library/golang:1.21.6-alpine3.18 as build
ARG VERSION
COPY ./ /workspace
RUN cd /workspace && \
VERSION=${VERSION} \
make all
WORKDIR /workspace
RUN set -ex && \
apk update && \
apk add git make && \
make all VERSION=${VERSION}
# TARGET
# =====================================================================
FROM docker.io/library/alpine:3.19
ARG VERSION=latest
LABEL org.opencontainers.image.authors="Markus Pesch" \
org.opencontainers.image.description="Return network interface names" \
org.opencontainers.image.documentation="https://git.cryptic.systems/volker.raschek/getidev#getidev" \
org.opencontainers.image.title="getidev" \
org.opencontainers.image.vendor="Markus Pesch" \
org.opencontainers.image.version="${VERSION}"
COPY --from=build /workspace/getidev /usr/bin/getidev
ENTRYPOINT [ "/usr/bin/getidev" ]