|
@ -5,14 +5,13 @@ |
|
|
FROM alpine |
|
|
FROM alpine |
|
|
MAINTAINER kev <noreply@datageek.info> |
|
|
MAINTAINER kev <noreply@datageek.info> |
|
|
|
|
|
|
|
|
ENV SS_VER 2.4.6 |
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev.git |
|
|
|
|
|
ENV SS_DIR shadowsocks-libev |
|
|
|
|
|
ENV SS_DEP git autoconf build-base curl libtool linux-headers openssl-dev asciidoc xmlto |
|
|
|
|
|
|
|
|
RUN set -ex \ |
|
|
RUN set -ex \ |
|
|
&& apk add --update $SS_DEP \ |
|
|
&& apk add --update $SS_DEP \ |
|
|
&& curl -sSL $SS_URL | tar xz \ |
|
|
|
|
|
|
|
|
&& git clone $SS_URL \ |
|
|
&& cd $SS_DIR \ |
|
|
&& cd $SS_DIR \ |
|
|
&& ./configure \ |
|
|
&& ./configure \ |
|
|
&& make install \ |
|
|
&& make install \ |
|
@ -27,6 +26,7 @@ ENV PASSWORD= |
|
|
ENV METHOD aes-256-cfb |
|
|
ENV METHOD aes-256-cfb |
|
|
ENV TIMEOUT 300 |
|
|
ENV TIMEOUT 300 |
|
|
ENV DNS_ADDR 8.8.8.8 |
|
|
ENV DNS_ADDR 8.8.8.8 |
|
|
|
|
|
ENV DNS_ADDR_2 8.8.4.4 |
|
|
|
|
|
|
|
|
EXPOSE $SERVER_PORT |
|
|
EXPOSE $SERVER_PORT |
|
|
EXPOSE $SERVER_PORT/udp |
|
|
EXPOSE $SERVER_PORT/udp |
|
@ -38,4 +38,5 @@ CMD ss-server -s $SERVER_ADDR \ |
|
|
-t $TIMEOUT \ |
|
|
-t $TIMEOUT \ |
|
|
--fast-open \ |
|
|
--fast-open \ |
|
|
-d $DNS_ADDR \ |
|
|
-d $DNS_ADDR \ |
|
|
|
|
|
-d $DNS_ADDR_2 \ |
|
|
-u |
|
|
-u |