Spaces:
Paused
Paused
Update Dockerfile
Browse files2 unmodified lines3456678940 unmodified lines50515253535455555657583 unmodified lines62636465656667682 unmodified linesWORKDIR /app
RUN apt-get update && apt-get install -y curl git ca-certificates && apt-get clean && \ curl -L https://github.com/artem-russkikh/wireproxy-awg/releases/latest/download/wireproxy_linux_amd64.tar.gz -o /app/awg.tar.gz && \ curl -L -sS https://github.com/artem-russkikh/wireproxy-awg/releases/latest/download/wireproxy_linux_amd64.tar.gz -o /app/awg.tar.gz && \ tar -xzf /app/awg.tar.gz -C /app && rm /app/awg.tar.gz && mv /app/wireproxy /app/awg && chmod +x /app/awg
COPY <<-"EOF" /app/resolv.conf40 unmodified lines/app/awg --config /app/awg.conf > /dev/null 2>&1 &sleep 3echo "test w/o awg:"curl 2ip.mecurl -sS 2ip.meecho "test with awg:"curl -x socks5://127.0.0.1:25344 2ip.mecurl -sS -x socks5://127.0.0.1:25344 2ip.meecho "setup proxy..."export http_proxy="socks5h://127.0.0.1:25344"export https_proxy="socks5h://127.0.0.1:25344"3 unmodified linesexport ALL_PROXY="socks5h://127.0.0.1:25344"source ~/.bashrcecho "test system-wide proxy:"curl 2ip.mecurl -sS 2ip.meexec "$@"EOF
Dockerfile+4-4