This commit is contained in:
ficapy 2016-08-21 07:39:28 +00:00 committed by GitHub
commit fa1df99b79

View file

@ -1,9 +1,16 @@
FROM stackbrew/debian:jessie
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y python python-setuptools
RUN apt-get -y install python-software-properties software-properties-common
RUN add-apt-repository ppa:chris-lea/libsodium
RUN echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list
RUN echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y libsodium-dev python-pip
ADD . /shadowsocks
RUN pip install shadowsocks
WORKDIR /shadowsocks
RUN python setup.py install
CMD ssserver
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