From 71625e6415faa55642090bfecac71f1ce3513471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Fri, 16 Jun 2017 21:12:02 +0800 Subject: [PATCH] refine Dockerfile --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e7383f..a35c1fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM alpine ENV SERVER_ADDR 0.0.0.0 ENV SERVER_PORT 51348 -ENV PASSWORD= +ENV PASSWORD psw ENV METHOD aes-128-ctr ENV PROTOCOL auth_aes128_md5 +ENV PROTOCOLPARAM 32 ENV OBFS tls1.2_ticket_auth_compatible ENV TIMEOUT 300 ENV DNS_ADDR 8.8.8.8 @@ -20,13 +21,13 @@ RUN apk update \ -RUN wget --no-check-certificate https://github.com/breakwa11/shadowsocks/archive/manyuser.zip -O /tmp/manyuser.zip \ +RUN wget --no-check-certificate https://github.com/shadowsocksr/shadowsocksr/archive/manyuser.zip -O /tmp/manyuser.zip \ && unzip -d /tmp /tmp/manyuser.zip \ - && mv /tmp/shadowsocksr-manyuser/shadowsocks ~/shadowsocks \ + && mv /tmp/shadowsocksr-manyuser ~/shadowsocksr \ && rm -rf /tmp/* -WORKDIR ~/shadowsocks +WORKDIR ~/shadowsocksr/shadowsocks -CMD python ~/shadowsocks/server.py -p $SERVER_PORT -k $PASSWORD -m $METHOD -O $PROTOCOL -o $OBFS +CMD python ~/shadowsocksr/shadowsocks/server.py -p $SERVER_PORT -k $PASSWORD -m $METHOD -O $PROTOCOL -o $OBFS -G $PROTOCOLPARAM