Dockfile add libsodium (#601)
This commit is contained in:
parent
6ef14e56db
commit
f35590b2e2
1 changed files with 15 additions and 7 deletions
22
Dockerfile
22
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue