Skip to content

Commit

Permalink
Build on top of Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax committed Oct 17, 2024
1 parent a80b68b commit 1f10208
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM alpine as build
RUN apk add libcap musl-dev cargo
FROM rust:slim-bullseye AS build
RUN apt-get update && apt-get install -y libcap2-bin
RUN cargo install --locked boringtun-cli

FROM alpine as dist
RUN apk add libgcc wireguard-tools socat
COPY --from=build /root/.cargo/bin/boringtun-cli /usr/local/bin/
FROM debian:bullseye-slim AS dist
RUN apt-get update && \
apt-get install -y --no-install-recommends libcap2-bin wireguard-tools socat && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /usr/local/cargo/bin/boringtun-cli /usr/local/bin/

0 comments on commit 1f10208

Please sign in to comment.