File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 1- FROM alpine
1+ FROM alpine:3.6
22
33ENV SERVER_ADDR 0.0.0.0
44ENV SERVER_PORT 51348
@@ -11,24 +11,20 @@ ENV TIMEOUT 300
1111ENV DNS_ADDR 8.8.8.8
1212ENV DNS_ADDR_2 8.8.4.4
1313
14+ ARG BRANCH=manyuser
15+ ARG WORK=/root
1416
15- RUN apk update \
16- && apk add python \
17- libsodium \
18- unzip \
19- wget \
20- && rm -rf /var/cache/apk/*
2117
18+ RUN apk --no-cache add python \
19+ libsodium \
20+ wget
2221
2322
24- RUN wget --no-check-certificate https://github.com/shadowsocksr/shadowsocksr/archive/manyuser.zip -O /tmp/manyuser.zip \
25- && unzip -d /tmp /tmp/manyuser.zip \
26- && mv /tmp/shadowsocksr-manyuser ~/shadowsocksr \
27- && rm -rf /tmp/*
23+ RUN wget -qO- --no-check-certificate https://github.com/shadowsocksr/shadowsocksr/archive/$BRANCH.tar.gz | tar -xzf - -C $WORK
2824
2925
30- WORKDIR ~ /shadowsocksr/shadowsocks
26+ WORKDIR $WORK /shadowsocksr-$BRANCH /shadowsocks
3127
3228
33- EXPOSE 51348
34- CMD python ~/shadowsocksr/shadowsocks/ server.py -p $SERVER_PORT -k $PASSWORD -m $METHOD -O $PROTOCOL -o $OBFS -G $PROTOCOLPARAM
29+ EXPOSE $SERVER_PORT
30+ CMD python server.py -p $SERVER_PORT -k $PASSWORD -m $METHOD -O $PROTOCOL -o $OBFS -G $PROTOCOLPARAM
You can’t perform that action at this time.
0 commit comments