20 lines
596 B
Docker
20 lines
596 B
Docker
# Dockerfile for shadowsocks-libev
|
|
# Copyright (C) 2018 Teddysun <i@teddysun.com>
|
|
# Reference URL:
|
|
# https://github.com/shadowsocks/shadowsocks-libev
|
|
|
|
FROM debian:stretch
|
|
MAINTAINER Teddysun <i@teddysun.com>
|
|
|
|
RUN set -ex; \
|
|
printf "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list; \
|
|
apt-get update; \
|
|
apt-get -t stretch-backports install -y shadowsocks-libev; \
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
VOLUME /etc/shadowsocks-libev
|
|
|
|
USER nobody
|
|
|
|
CMD [ "/bin/bash", "-c", "/usr/bin/ss-server -c /etc/shadowsocks-libev/config.json" ]
|