mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
This change moves building the Go binary out of the Dockerfile, and also fixes some issues in the makefile. These things will speed up build times and avoid rebuilding when not needed. Additionally it will make getting version data easier to use as part of the user agent. Signed-off-by: Philip Laine <philip.laine@gmail.com>
12 lines
504 B
Docker
12 lines
504 B
Docker
FROM gcr.io/distroless/static:nonroot
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
LABEL org.opencontainers.image.title="NetBird Operator" \
|
|
org.opencontainers.image.description="Kubernetes operator for NetBird." \
|
|
org.opencontainers.image.source="https://github.com/netbirdio/kubernetes-operator" \
|
|
org.opencontainers.image.vendor="NetBird" \
|
|
org.opencontainers.image.licenses="BSD-3-Clause"
|
|
COPY bin/${TARGETOS}-${TARGETARCH}/netbird-operator .
|
|
USER 65532:65532
|
|
ENTRYPOINT ["/netbird-operator"]
|