[misc] switch to Alpine 3.24 and add bash/ca-certificates in Dockerfiles

This commit is contained in:
mlsmaycon
2026-06-16 10:50:52 +02:00
parent b51e03e8d0
commit 2ef70bcb6c
7 changed files with 12 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
# 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
FROM alpine:3.23.3
FROM alpine:3.24
# iproute2: busybox doesn't display ip rules properly
RUN apk add --no-cache \
bash \

View File

@@ -4,7 +4,7 @@
# 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
FROM alpine:3.22.0
FROM alpine:3.24
RUN apk add --no-cache \
bash \

View File

@@ -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/certs
FROM gcr.io/distroless/base:debug
FROM alpine:3.24
RUN apk add --no-cache bash ca-certificates
ARG TARGETPLATFORM
COPY ${TARGETPLATFORM}/netbird-proxy /go/bin/netbird-proxy
COPY --from=builder /tmp/passwd /etc/passwd

View File

@@ -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/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 /tmp/passwd /etc/passwd
COPY --from=builder /tmp/group /etc/group

View File

@@ -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" ]
ENV NB_LOG_FILE=console
ARG TARGETPLATFORM

View File

@@ -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" ]
CMD ["--log-file", "console"]
ARG TARGETPLATFORM

View File

@@ -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" ]
ARG TARGETPLATFORM
COPY ${TARGETPLATFORM}/netbird-upload /go/bin/netbird-upload