create a Dockerfile for ssr (#143)
by this dockerfile, make it easy to run ssr-server on docker server
This commit is contained in:
parent
e048e224d0
commit
bdee67b856
1 changed files with 32 additions and 0 deletions
32
Dockerfile
Normal file
32
Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
|||
FROM alpine
|
||||
|
||||
ENV SERVER_ADDR 0.0.0.0
|
||||
ENV SERVER_PORT 51348
|
||||
ENV PASSWORD=
|
||||
ENV METHOD aes-256-cfb
|
||||
ENV PROTOCOL origin
|
||||
ENV OBFS http_simple
|
||||
ENV TIMEOUT 300
|
||||
ENV DNS_ADDR 8.8.8.8
|
||||
ENV DNS_ADDR_2 8.8.4.4
|
||||
|
||||
|
||||
RUN apk update \
|
||||
&& apk add python \
|
||||
libsodium \
|
||||
unzip \
|
||||
wget \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
|
||||
|
||||
RUN wget --no-check-certificate https://github.com/breakwa11/shadowsocks/archive/manyuser.zip -O /tmp/manyuser.zip \
|
||||
&& unzip -d /tmp /tmp/manyuser.zip \
|
||||
&& mv /tmp/shadowsocks-manyuser/shadowsocks ~/shadowsocks \
|
||||
&& rm -rf /tmp/*
|
||||
|
||||
|
||||
WORKDIR ~/shadowsocks
|
||||
|
||||
|
||||
CMD python ~/shadowsocks/server.py -p $SERVER_PORT -k $PASSWORD -m $METHOD -O $PROTOCOL -o $OBFS
|
Loading…
Add table
Reference in a new issue