use TARGETPLATFORM in dockerfiles and adjust armv6 reference

This commit is contained in:
mlsmaycon
2026-06-16 08:59:36 +02:00
parent 5318dbb818
commit 74edfbcc0c
9 changed files with 24 additions and 18 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ RUN echo "netbird:x:1000:1000:netbird:/var/lib/netbird:/sbin/nologin" > /tmp/pas
mkdir -p /tmp/certs
FROM gcr.io/distroless/base:debug
COPY netbird-proxy /go/bin/netbird-proxy
ARG TARGETPLATFORM
COPY ${TARGETPLATFORM}/netbird-proxy /go/bin/netbird-proxy
COPY --from=builder /tmp/passwd /etc/passwd
COPY --from=builder /tmp/group /etc/group
COPY --from=builder --chown=1000:1000 /tmp/var/lib/netbird /var/lib/netbird