Skip to content

Instantly share code, notes, and snippets.

@clouedoc
Created October 21, 2021 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clouedoc/42bc1bd303b108c4450e3176f20e570f to your computer and use it in GitHub Desktop.
Save clouedoc/42bc1bd303b108c4450e3176f20e570f to your computer and use it in GitHub Desktop.
Add 3proxy to an alpine Dockerfile
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