创建ss的脚本修改

This commit is contained in:
ddvudo 2018-08-27 00:48:01 +00:00
parent 05e16591cb
commit 06eeeb206b
2 changed files with 2 additions and 16 deletions

1
init-ss-server.sh Normal file
View File

@ -0,0 +1 @@
docker run -d -p 9999:9999 --name ss-server -e SS_PORT=9999 -e SS_PASSWD=liukang951006 ddv12138/shadowsocks

View File

@ -1,16 +1 @@
FROM ubuntu
ENV SSR_URL https://github.com/shadowsocksr-backup/shadowsocksr.git
ENV SS_PORT 6666
ENV SS_PASSWD liukang951006
ENV SS_METH aes-256-cfb #encryption method
ENV SS_OBFS http_simple #obfsplugin
RUN set -ex \
&& apt update \
&& apt install -y python-pip python-dev build-essential git \
&& pip install --upgrade pip \
&& git clone ${SSR_URL} \
&& cd ./shadowsocksr/shadowsocks \
CMD python server.py -p $SS_PORT -k $SS_PASSWD -m $SS_METH -o $SS_OBFS --fast-open
docker run -d -p 9999:9999 --name ss-server -e SS_PORT=9999 -e SS_PASSWD=liukang951006 ddv12138/shadowsocks