Skip to content

Commit

Permalink
Added shadowsocks-r docker image based alpine
Browse files Browse the repository at this point in the history
Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Aug 11, 2018
1 parent aa277d0 commit 2ff3782
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docker/shadowsocks-r/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Dockerfile for shadowsocks-libev based alpine
# Copyright (C) 2018 Teddysun <[email protected]>
# Reference URL:
# https://github.com/shadowsocks/shadowsocks-libev

FROM python:3.6-alpine
LABEL maintainer="Teddysun <[email protected]>"

RUN runDeps="\
tar \
wget \
libsodium-dev \
openssl \
"; \
set -ex \
&& apk add --no-cache --virtual .build-deps ${runDeps} \
&& wget -O /tmp/shadowsocksr-3.2.2.tar.gz https://github.com/shadowsocksrr/shadowsocksr/archive/3.2.2.tar.gz \
&& tar zxf /tmp/shadowsocksr-3.2.2.tar.gz -C /tmp \
&& mv /tmp/shadowsocksr-3.2.2/shadowsocks /usr/local/ \
&& rm -fr /tmp/shadowsocksr-3.2.2 \
&& rm -f /tmp/shadowsocksr-3.2.2.tar.gz

COPY ./config_sample.json /etc/shadowsocks-r/config.json
VOLUME /etc/shadowsocks-r

USER nobody

CMD [ "/usr/local/shadowsocks/server.py", "-c", "/etc/shadowsocks-r/config.json" ]
18 changes: 18 additions & 0 deletions docker/shadowsocks-r/alpine/config_sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"server":"0.0.0.0",
"server_ipv6":"::",
"server_port":9000,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"password0",
"timeout":120,
"method":"aes-256-cfb",
"protocol":"origin",
"protocol_param":"",
"obfs":"plain",
"obfs_param":"",
"redirect":"",
"dns_ipv6":false,
"fast_open":true,
"workers":1
}

0 comments on commit 2ff3782

Please sign in to comment.