-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 879 Bytes
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM python:3.6-alpine
MAINTAINER Ali Borhani <github.com/alibo>
ARG SSR_VER=3.2.1
ENV SSR_PORT=443
ENV SSR_PASSWORD=123456
ENV SSR_METHOD=chacha20-ietf
ENV SSR_TIMEOUT=600
ENV SSR_OBFS=http_post_compatible
ENV SSR_WORKERS=1
RUN apk add --no-cache \
linux-headers \
zlib-dev \
automake \
openssl \
unzip \
make \
libtool \
curl \
autoconf \
build-base \
libsodium
WORKDIR /
RUN wget -q -O - https://github.com/shadowsocksrr/shadowsocksr/archive/$SSR_VER.tar.gz | tar xz \
&& mv shadowsocksr-$SSR_VER shadowsocksr
WORKDIR /shadowsocksr/shadowsocks
EXPOSE $SSR_PORT/tcp $SSR_PORT/udp
ENTRYPOINT python server.py \
-s 0.0.0.0 \
-p $SSR_PORT \
-k $SSR_PASSWORD \
-m $SSR_METHOD \
-o $SSR_OBFS \
-t $SSR_TIMEOUT \
--workers $SSR_WORKERS \
--fast-open