From 87053a262b2b6d5b783880178984636d43bc6c41 Mon Sep 17 00:00:00 2001 From: ficapy Date: Sun, 21 Aug 2016 15:23:42 +0800 Subject: [PATCH] Dockfile add libsodium --- Dockerfile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36ddaa0..398ddf6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file