Files
netbird-kubernetes-operator/Dockerfile
T
Philip LaineandGitHub 59e0ee8daa Refactor Dockerfile to build Go binary outside of Docker (#218)
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>
2026-05-04 14:44:10 +02:00

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"]