1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/shadowsocks/libev-arm/Dockerfile

42 lines
1004 B
Docker
Raw Normal View History

2015-09-18 06:33:48 +02:00
#
2015-09-19 17:45:35 +02:00
# Dockerfile for shadowsocks-libev-arm
2015-09-18 06:33:48 +02:00
#
2015-09-19 17:45:35 +02:00
FROM vimagick/alpine-arm
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-09-18 06:33:48 +02:00
2016-04-22 17:41:12 +02:00
ENV SS_VER 2.4.6
2015-09-18 06:33:48 +02:00
ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar.gz
ENV SS_DIR shadowsocks-libev-$SS_VER
ENV SS_DEP autoconf build-base curl libtool linux-headers openssl-dev
2015-12-24 16:09:35 +02:00
RUN set -ex \
&& apk add --update $SS_DEP \
2015-09-18 06:33:48 +02:00
&& curl -sSL $SS_URL | tar xz \
&& cd $SS_DIR \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf $SS_DIR \
&& apk del --purge $SS_DEP \
&& rm -rf /var/cache/apk/*
ENV SERVER_ADDR=
ENV SERVER_PORT 8388
ENV METHOD aes-256-cfb
ENV PASSWORD=
ENV LOCAL_ADDR 0.0.0.0
ENV LOCAL_PORT 1080
ENV TIMEOUT 300
EXPOSE $LOCAL_PORT
CMD ss-local -s "$SERVER_ADDR" \
-p "$SERVER_PORT" \
-m "$METHOD" \
-k "$PASSWORD" \
-b "$LOCAL_ADDR" \
-l "$LOCAL_PORT" \
-t "$TIMEOUT" \
--fast-open