FROM rust:1.97.0-trixie AS builder RUN apt -y update && apt -y install git RUN git clone https://github.com/Revertron/Yggdrasil-ng.git /app WORKDIR /app RUN cargo build --release -p yggdrasil FROM debian:trixie AS result COPY --from=builder /app/target/release/yggdrasil /usr/bin RUN mkdir /data && apt -y update && apt -y install iproute2 inetutils-ping && apt -y clean all CMD /usr/bin/yggdrasil -c /data/config.toml