mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 06:49:07 +01:00
[misc] switch to Alpine 3.24 and add bash/ca-certificates in Dockerfiles
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
# sudo podman build -t localhost/netbird:latest -f client/Dockerfile --ignorefile .dockerignore-client .
|
# sudo podman build -t localhost/netbird:latest -f client/Dockerfile --ignorefile .dockerignore-client .
|
||||||
# sudo podman run --rm -it --cap-add={BPF,NET_ADMIN,NET_RAW} localhost/netbird:latest
|
# sudo podman run --rm -it --cap-add={BPF,NET_ADMIN,NET_RAW} localhost/netbird:latest
|
||||||
|
|
||||||
FROM alpine:3.23.3
|
FROM alpine:3.24
|
||||||
# iproute2: busybox doesn't display ip rules properly
|
# iproute2: busybox doesn't display ip rules properly
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# podman build -t localhost/netbird:latest -f client/Dockerfile --ignorefile .dockerignore-client .
|
# podman build -t localhost/netbird:latest -f client/Dockerfile --ignorefile .dockerignore-client .
|
||||||
# podman run --rm -it --cap-add={BPF,NET_ADMIN,NET_RAW} localhost/netbird:latest
|
# podman run --rm -it --cap-add={BPF,NET_ADMIN,NET_RAW} localhost/netbird:latest
|
||||||
|
|
||||||
FROM alpine:3.22.0
|
FROM alpine:3.24
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
|
|||||||
+2
-1
@@ -6,7 +6,8 @@ RUN echo "netbird:x:1000:1000:netbird:/var/lib/netbird:/sbin/nologin" > /tmp/pas
|
|||||||
mkdir -p /tmp/var/lib/netbird && \
|
mkdir -p /tmp/var/lib/netbird && \
|
||||||
mkdir -p /tmp/certs
|
mkdir -p /tmp/certs
|
||||||
|
|
||||||
FROM gcr.io/distroless/base:debug
|
FROM alpine:3.24
|
||||||
|
RUN apk add --no-cache bash ca-certificates
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
COPY ${TARGETPLATFORM}/netbird-proxy /go/bin/netbird-proxy
|
COPY ${TARGETPLATFORM}/netbird-proxy /go/bin/netbird-proxy
|
||||||
COPY --from=builder /tmp/passwd /etc/passwd
|
COPY --from=builder /tmp/passwd /etc/passwd
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ RUN echo "netbird:x:1000:1000:netbird:/var/lib/netbird:/sbin/nologin" > /tmp/pas
|
|||||||
mkdir -p /tmp/var/lib/netbird && \
|
mkdir -p /tmp/var/lib/netbird && \
|
||||||
mkdir -p /tmp/certs
|
mkdir -p /tmp/certs
|
||||||
|
|
||||||
FROM gcr.io/distroless/base:debug
|
FROM alpine:3.24
|
||||||
|
RUN apk add --no-cache bash ca-certificates
|
||||||
COPY --from=builder /app/netbird-proxy /usr/bin/netbird-proxy
|
COPY --from=builder /app/netbird-proxy /usr/bin/netbird-proxy
|
||||||
COPY --from=builder /tmp/passwd /etc/passwd
|
COPY --from=builder /tmp/passwd /etc/passwd
|
||||||
COPY --from=builder /tmp/group /etc/group
|
COPY --from=builder /tmp/group /etc/group
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
FROM gcr.io/distroless/base:debug
|
FROM alpine:3.24
|
||||||
|
RUN apk add --no-cache bash ca-certificates
|
||||||
ENTRYPOINT [ "/go/bin/netbird-relay" ]
|
ENTRYPOINT [ "/go/bin/netbird-relay" ]
|
||||||
ENV NB_LOG_FILE=console
|
ENV NB_LOG_FILE=console
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
FROM gcr.io/distroless/base:debug
|
FROM alpine:3.24
|
||||||
|
RUN apk add --no-cache bash ca-certificates
|
||||||
ENTRYPOINT [ "/go/bin/netbird-signal","run" ]
|
ENTRYPOINT [ "/go/bin/netbird-signal","run" ]
|
||||||
CMD ["--log-file", "console"]
|
CMD ["--log-file", "console"]
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
FROM gcr.io/distroless/base:debug
|
FROM alpine:3.24
|
||||||
|
RUN apk add --no-cache bash ca-certificates
|
||||||
ENTRYPOINT [ "/go/bin/netbird-upload" ]
|
ENTRYPOINT [ "/go/bin/netbird-upload" ]
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
COPY ${TARGETPLATFORM}/netbird-upload /go/bin/netbird-upload
|
COPY ${TARGETPLATFORM}/netbird-upload /go/bin/netbird-upload
|
||||||
|
|||||||
Reference in New Issue
Block a user