shadowsocks_install/docker/shadowsocks-libev/Dockerfile
Teddysun 11c20ecb19
Update Dockerfile
Signed-off-by: Teddysun <i@teddysun.com>
2018-11-18 15:55:46 +09:00

21 lines
632 B
Docker

# Dockerfile for shadowsocks-libev
# Copyright (C) 2018 Teddysun <i@teddysun.com>
# Reference URL:
# https://github.com/shadowsocks/shadowsocks-libev
FROM debian:stretch
LABEL maintainer="Teddysun <i@teddysun.com>"
RUN set -ex \
&& printf "deb http://deb.debian.org/debian sid main" > /etc/apt/sources.list.d/sid.list \
&& apt-get update \
&& apt-get -t sid install -y --no-install-recommends shadowsocks-libev simple-obfs \
&& rm -rf /var/lib/apt/lists/*
COPY ./config_sample.json /etc/shadowsocks-libev/config.json
VOLUME /etc/shadowsocks-libev
USER nobody
CMD [ "ss-server", "-c", "/etc/shadowsocks-libev/config.json" ]