From 60334dbc7c4d518e29138e9176fdeb5f764b415f Mon Sep 17 00:00:00 2001 From: codestation Date: Mon, 4 Dec 2023 20:52:06 -0500 Subject: [PATCH] switch agent final image to debian:bookworm --- images/agent/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/images/agent/Dockerfile b/images/agent/Dockerfile index 3d71d9f7..f3471e96 100644 --- a/images/agent/Dockerfile +++ b/images/agent/Dockerfile @@ -58,13 +58,14 @@ RUN set -eux; \ # end of step 3 # step 4: prepare image -FROM --platform=${TARGETPLATFORM} alpine:3.18 +FROM --platform=${TARGETPLATFORM} debian:bookworm ARG WIREGUARD_GO_SRC ARG WIREGUARD_AGENT_SRC ARG PROMETHEUS_WIREGUARD_EXPORTER_SRC -# libgcc and gcompat are need for the prometheus exporter. it is currently not statically linked. -RUN apk add bash iptables wireguard-tools libgcc gcompat +RUN apt-get update \ + && apt-get install --no-install-recommends -y iptables wireguard-tools \ + && rm -rf /var/lib/apt/lists/* COPY --from=golang-builder $WIREGUARD_GO_SRC/wireguard-go /usr/local/bin COPY --from=golang-builder $WIREGUARD_AGENT_SRC/agent /usr/local/bin @@ -73,4 +74,4 @@ COPY --from=rust-builder $PROMETHEUS_WIREGUARD_EXPORTER_SRC/prometheus_wireguard WORKDIR / ENTRYPOINT ["agent"] -# end of step 4 \ No newline at end of file +# end of step 4