mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-07-01 15:22:55 +00:00
Initial import
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM rust:slim AS build
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl
|
||||
RUN apt update && apt install -y musl-tools musl-dev
|
||||
RUN cargo install --target x86_64-unknown-linux-musl 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
|
||||
COPY --from=build /usr/local/cargo/bin/boringtun-cli /usr/local/bin/boringtun
|
||||
COPY create-config.sh entrypoint.sh ./
|
||||
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
Reference in New Issue
Block a user