mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
22 lines
544 B
Docker
22 lines
544 B
Docker
#
|
|
# Dockerfile for microsocks
|
|
#
|
|
|
|
FROM alpine:3
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
ENV MICROSOCKS_VERSION=1.0.2
|
|
ENV MICROSOCKS_FILE=microsocks-$MICROSOCKS_VERSION-x86_64-static.xz
|
|
ENV MICROSOCKS_URL=https://github.com/rofl0r/microsocks/releases/download/v$MICROSOCKS_VERSION/$MICROSOCKS_FILE
|
|
|
|
RUN set -xe \
|
|
&& apk add --no-cache curl xz \
|
|
&& cd /usr/local/bin \
|
|
&& curl -sSL $MICROSOCKS_URL | xz -d -c > microsocks \
|
|
&& chmod +x microsocks \
|
|
&& apk del curl xz
|
|
|
|
EXPOSE 1080
|
|
ENTRYPOINT ["microsocks"]
|
|
CMD ["-i", "0.0.0.0", "-p", "1080"]
|