mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-19 20:39:23 +01:00
17 lines
385 B
Plaintext
17 lines
385 B
Plaintext
FROM alpine:3.21.0
|
|
|
|
COPY netbird /usr/local/bin/netbird
|
|
|
|
RUN apk add --no-cache ca-certificates \
|
|
&& adduser -D -h /var/lib/netbird netbird
|
|
WORKDIR /var/lib/netbird
|
|
USER netbird:netbird
|
|
|
|
ENV NB_FOREGROUND_MODE=true
|
|
ENV NB_USE_NETSTACK_MODE=true
|
|
ENV NB_CONFIG=config.json
|
|
ENV NB_DAEMON_ADDR=unix://netbird.sock
|
|
ENV NB_DISABLE_DNS=true
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/netbird", "up" ]
|