1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:29 +02:00
dockerfiles/shadowsocks/Dockerfile

31 lines
647 B
Docker
Raw Normal View History

2015-02-09 16:40:25 +02:00
#
2015-05-27 10:52:12 +02:00
# Dockerfile for shadowsocks
2015-02-09 16:40:25 +02:00
#
2015-06-16 09:07:59 +02:00
FROM alpine
2015-05-27 10:52:12 +02:00
MAINTAINER kev <noreply@datageek.info>
2015-02-09 16:40:25 +02:00
2015-06-16 10:25:37 +02:00
RUN apk add --update curl python \
2015-05-27 10:52:12 +02:00
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install shadowsocks \
2015-06-16 10:25:37 +02:00
&& apk del --purge curl \
2015-06-16 09:07:59 +02:00
&& rm -rf /var/cache/apk/*
2015-02-09 16:40:25 +02:00
2015-05-27 10:52:12 +02:00
ENV SERVER_ADDR 0.0.0.0
ENV SERVER_PORT 8388
2015-06-19 20:25:40 +02:00
ENV PASSWORD=
2015-06-16 02:42:06 +02:00
ENV METHOD aes-256-cfb
ENV TIMEOUT 300
ENV WORKERS 10
2015-06-16 03:11:54 +02:00
EXPOSE $SERVER_PORT
2015-02-09 16:40:25 +02:00
2015-05-27 10:52:12 +02:00
CMD ssserver -s $SERVER_ADDR \
-p $SERVER_PORT \
2015-06-19 20:44:31 +02:00
-k ${PASSWORD:-$(hostname)} \
2015-05-27 10:52:12 +02:00
-m $METHOD \
-t $TIMEOUT \
--fast-open \
--workers $WORKERS