Skip to content

Commit

Permalink
fix:switch agent final image to debian:bookworm (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
codestation authored Dec 7, 2023
1 parent a62aba2 commit 3d4d214
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions images/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -73,4 +74,4 @@ COPY --from=rust-builder $PROMETHEUS_WIREGUARD_EXPORTER_SRC/prometheus_wireguard
WORKDIR /

ENTRYPOINT ["agent"]
# end of step 4
# end of step 4

0 comments on commit 3d4d214

Please sign in to comment.