Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch agent final image to debian:bookworm #129

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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