Merge 87053a262b
into 6ef14e56db
This commit is contained in:
commit
fa1df99b79
1 changed files with 13 additions and 6 deletions
19
Dockerfile
19
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
|
Loading…
Add table
Add a link
Reference in a new issue