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
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment