1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-04-21 12:07:00 +02:00
This commit is contained in:
kev 2015-05-27 16:52:12 +08:00
parent e2097dc659
commit eea6ce19b8

View File

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