Unverified Commit 2ff37820 authored by Teddysun's avatar Teddysun

Added shadowsocks-r docker image based alpine

Signed-off-by: default avatarTeddysun <i@teddysun.com>
parent aa277d07
# Dockerfile for shadowsocks-libev based alpine
# Copyright (C) 2018 Teddysun <i@teddysun.com>
# Reference URL:
# https://github.com/shadowsocks/shadowsocks-libev
FROM python:3.6-alpine
LABEL maintainer="Teddysun <i@teddysun.com>"
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" ]
\ No newline at end of file
{
"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
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment