2024-05-08 00:44:35 +00:00
|
|
|
FROM docker.io/library/golang:1.22.3-alpine3.18 as build
|
2021-06-10 11:08:56 +00:00
|
|
|
|
|
|
|
ARG VERSION
|
|
|
|
|
|
|
|
COPY ./ /workspace
|
|
|
|
|
2024-04-08 14:28:53 +00:00
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
|
|
RUN set -ex && \
|
|
|
|
apk update && \
|
|
|
|
apk add git make && \
|
|
|
|
make all VERSION=${VERSION}
|
2021-06-10 11:08:56 +00:00
|
|
|
|
|
|
|
# TARGET
|
|
|
|
# =====================================================================
|
2024-12-05 23:13:41 +00:00
|
|
|
FROM docker.io/library/alpine:3.21
|
2021-06-10 11:08:56 +00:00
|
|
|
|
2024-04-08 14:28:53 +00:00
|
|
|
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}"
|
|
|
|
|
2021-06-10 11:08:56 +00:00
|
|
|
COPY --from=build /workspace/getidev /usr/bin/getidev
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/getidev" ]
|