1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/microsocks/Dockerfile

22 lines
544 B
Docker
Raw Normal View History

2021-10-15 11:38:05 +02:00
#
# Dockerfile for microsocks
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2022-03-09 10:19:25 +02:00
ARG MICROSOCKS_VERSION=1.0.3
ARG MICROSOCKS_FILE=microsocks-$MICROSOCKS_VERSION-x86_64-static.xz
ARG MICROSOCKS_URL=https://github.com/rofl0r/microsocks/releases/download/v$MICROSOCKS_VERSION/$MICROSOCKS_FILE
2021-10-15 11:38:05 +02:00
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"]