FROM ubuntu:latest RUN apt-get update && \ apt-get install -y software-properties-common && \ apt-add-repository ppa:i2p-maintainers/i2p && \ apt-get update && \ apt-get install -y git golang-go build-essential i2p socat RUN mkdir -p /app/t WORKDIR /app RUN git clone https://git.zx2c4.com/wireguard-go ./* RUN cp -r ./t/* . && \ go build -o /usr/local/bin/wireguard-go COPY wg0.conf.template /app/wg0.conf.template COPY entrypoint.sh /app/entrypoint.sh RUN chmod +x /app/entrypoint.sh RUN chmod -R 777 /app RUN chmod 777 /app/entrypoint.sh EXPOSE 57777/udp EXPOSE 7860/tcp RUN useradd -m appuser USER appuser CMD ["/app/entrypoint.sh"]