1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/shadowsocks/Dockerfile
2015-05-27 16:52:12 +08:00

29 lines
611 B
Docker

#
# Dockerfile for shadowsocks
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y curl python \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install shadowsocks \
&& rm -rf /var/lib/apt/lists/*
ENV SERVER_ADDR 0.0.0.0
ENV SERVER_PORT 8388
ENV PASSWORD secret
ENV METHOD aes-256-cfb
ENV TIMEOUT 300
ENV WORKERS 10
CMD ssserver -s $SERVER_ADDR \
-p $SERVER_PORT \
-k $PASSWORD \
-m $METHOD \
-t $TIMEOUT \
--fast-open \
--workers $WORKERS