shadowsocks/Dockerfile

18 lines
644 B
Text
Raw Normal View History

2016-08-23 14:00:32 +00:00
FROM ubuntu:14.04
2016-02-24 01:47:04 +00:00
2016-08-23 14:00:32 +00:00
RUN apt-get update && apt-get install -y \
python-software-properties \
software-properties-common \
&& add-apt-repository ppa:chris-lea/libsodium \
&& echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list \
&& echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y libsodium-dev python-pip
2016-02-24 01:47:04 +00:00
2016-08-23 14:00:32 +00:00
RUN pip install shadowsocks
ENTRYPOINT ["/usr/local/bin/ssserver"]
# usage:
# docker run -d --restart=always -p 1314:1314 ficapy/shadowsocks -s 0.0.0.0 -p 1314 -k $PD -m chacha20