Spaces:
Paused
Paused
Update Dockerfile
Browse files2 unmodified lines345678940 unmodified lines5051525354555657583 unmodified lines626364656667682 unmodified linesWORKDIR /appRUN 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 && \tar -xzf /app/awg.tar.gz -C /app && rm /app/awg.tar.gz && mv /app/wireproxy /app/awg && chmod +x /app/awgCOPY <<-"EOF" /app/resolv.conf40 unmodified lines/app/awg --config /app/awg.conf > /dev/null 2>&1 &sleep 3echo "test w/o awg:"curl 2ip.meecho "test with awg:"curl -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.meexec "$@"EOF2 unmodified lines345678940 unmodified lines5051525354555657583 unmodified lines626364656667682 unmodified linesWORKDIR /appRUN apt-get update && apt-get install -y curl git ca-certificates && apt-get clean && \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/awgCOPY <<-"EOF" /app/resolv.conf40 unmodified lines/app/awg --config /app/awg.conf > /dev/null 2>&1 &sleep 3echo "test w/o awg:"curl -sS 2ip.meecho "test with awg:"curl -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 -sS 2ip.meexec "$@"EOF
Dockerfile+4-4