mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-04-19 13:26:50 +00:00
27 lines
658 B
Docker
27 lines
658 B
Docker
FROM rust:alpine AS build
|
|
|
|
RUN apk update
|
|
RUN apk add cmake make musl-dev g++
|
|
RUN cargo install boringtun-cli
|
|
|
|
###
|
|
|
|
FROM alpine
|
|
|
|
ENV WG_QUICK_USERSPACE_IMPLEMENTATION boringtun
|
|
ENV WG_LOG_LEVEL info
|
|
ENV WG_LOG_FILE /var/log/boringtun
|
|
ENV WG_SUDO 1
|
|
|
|
RUN apk --update add iproute2 wireguard-tools-wg-quick libqrencode dnsmasq
|
|
|
|
WORKDIR /scripts
|
|
|
|
LABEL org.opencontainers.image.description="WireGuard docker setup using BoringTun"
|
|
LABEL org.opencontainers.image.source="https://github.com/pcvolkmer/docker-wireguard-boringtun"
|
|
|
|
COPY --from=build /usr/local/cargo/bin/boringtun-cli /usr/local/bin/boringtun
|
|
COPY scripts/ ./
|
|
|
|
ENTRYPOINT ["/scripts/entrypoint.sh"]
|