1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/shadowsocks/Dockerfile

29 lines
611 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-05-27 10:52:12 +02:00
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
2015-02-09 16:40:25 +02:00
2015-05-27 10:52:12 +02:00
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/*
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-02-09 16:40:25 +02:00
ENV PASSWORD secret
ENV METHOD aes-256-cfb
2015-05-27 10:52:12 +02:00
ENV TIMEOUT 300
2015-02-09 16:40:25 +02:00
ENV WORKERS 10
2015-05-27 10:52:12 +02:00
CMD ssserver -s $SERVER_ADDR \
-p $SERVER_PORT \
-k $PASSWORD \
-m $METHOD \
-t $TIMEOUT \
--fast-open \
--workers $WORKERS