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

41 lines
938 B
Docker
Raw Normal View History

2015-06-16 02:42:06 +02:00
#
# Dockerfile for shadowsocks-libev
#
2015-06-16 09:56:05 +02:00
FROM alpine
2015-06-16 02:42:06 +02:00
MAINTAINER kev <noreply@datageek.info>
2015-06-16 09:56:05 +02:00
ENV SS_VER 2.2.2
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 curl linux-headers build-base autoconf libtool openssl-dev
RUN apk update \
&& apk add $SS_DEP \
&& curl -sSL $SS_URL | tar xz \
&& cd $SS_DIR \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf $SS_DIR \
&& apk del $SS_DEP \
&& rm -rf /var/cache/apk/*
2015-06-16 02:42:06 +02:00
ENV SERVER_ADDR 0.0.0.0
ENV SERVER_PORT 8388
ENV PASSWORD secret
ENV METHOD aes-256-cfb
ENV TIMEOUT 300
ENV DNS_ADDR 8.8.8.8
2015-06-16 03:11:54 +02:00
EXPOSE $SERVER_PORT
2015-06-16 02:42:06 +02:00
CMD ss-server -s $SERVER_ADDR \
-p $SERVER_PORT \
-k $PASSWORD \
-m $METHOD \
-t $TIMEOUT \
--fast-open \
-d $DNS_ADDR \
-u