From 1f10208e29d84bc2412b6eb28f06e991cc5b9248 Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Thu, 17 Oct 2024 11:15:47 +0300 Subject: [PATCH] Build on top of Debian --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ceaa6ab..90ee87a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/