FROM debian:trixie
ARG VERSION

RUN mkdir /data && apt -y update && apt -y install iproute2 inetutils-ping wget && \
	wget https://github.com/Revertron/Yggdrasil-ng/releases/download/v${VERSION}/yggdrasil-amd64 -O /usr/bin/yggdrasil && \
	chmod a+x /usr/bin/yggdrasil && apt -y clean all
CMD ["/usr/bin/yggdrasil", "-c", "/data/config.toml" ]
