Created
October 21, 2021 10:13
-
-
Save clouedoc/42bc1bd303b108c4450e3176f20e570f to your computer and use it in GitHub Desktop.
Add 3proxy to an alpine Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
ENV THREEPROXY_VERSION=0.9.4 | |
# Install 3proxy to /usr/local/bin | |
RUN apk add alpine-sdk && \ | |
export DIR=$(mktemp -d) && cd $DIR && \ | |
wget https://github.com/3proxy/3proxy/archive/refs/tags/${THREEPROXY_VERSION}.tar.gz && tar -xf ${THREEPROXY_VERSION}.tar.gz && mv 3proxy* 3proxy && \ | |
cd 3proxy && \ | |
make -f Makefile.Linux || true && \ | |
mv bin/3proxy /usr/local/bin/ && \ | |
cd && rm -rf $DIR && \ | |
apk del alpine-sdk | |
# There you go ! 3proxy is installed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment