Dockfile add libsodium (#601)

This commit is contained in:
ficapy 2016-08-23 22:00:32 +08:00 committed by mengskysama
parent 6ef14e56db
commit f35590b2e2

View file

@ -1,9 +1,17 @@
FROM stackbrew/debian:jessie
RUN apt-get update
RUN apt-get install -y python python-setuptools
FROM ubuntu:14.04
ADD . /shadowsocks
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
WORKDIR /shadowsocks
RUN python setup.py install
CMD ssserver
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