Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 818 Bytes
# Dockerfile for ShadowsocksR
# Copyright (C) 2018 Teddysun <i@teddysun.com>
# Reference URL:
# https://github.com/shadowsocksrr/shadowsocksr
FROM debian:stretch
LABEL maintainer="Teddysun <i@teddysun.com>"
RUN set -ex \
&& apt-get update \
&& apt-get install -y wget python libsodium-dev openssl \
&& rm -rf /var/lib/apt/lists/* \
&& 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" ]