mirror of
https://github.com/vimagick/dockerfiles.git
synced 2026-01-03 03:27:27 +01:00
add microsocks
This commit is contained in:
21
microsocks/Dockerfile
Normal file
21
microsocks/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user