FROM fedora:latest

RUN dnf install -y wg-quick curl iproute openresolv iptables-nft procps-ng \
    && dnf clean all -y

COPY entrypoint.sh /entrypoint.sh
COPY wg-convert-config.sh /wg-convert-config.sh
COPY wait-vpn-ready.sh /wait-vpn-ready.sh
RUN chmod +x /entrypoint.sh /wg-convert-config.sh /wait-vpn-ready.sh

ENV WG_TARGET=wg0
CMD ["/entrypoint.sh"]
