forked from EasyPi/docker-shadowsocks-libev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.arm
41 lines (35 loc) · 1020 Bytes
/
Dockerfile.arm
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
#
# Dockerfile for shadowsocks-libev-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV SS_VER 2.4.8
ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar.gz
ENV SS_DIR shadowsocks-libev-$SS_VER
ENV SS_DEP asciidoc autoconf build-base curl libtool linux-headers openssl-dev xmlto
RUN set -ex \
&& apk add --no-cache $SS_DEP \
&& curl -sSL $SS_URL | tar xz \
&& cd $SS_DIR \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf $SS_DIR \
&& apk del --purge $SS_DEP
ENV SERVER_ADDR=
ENV SERVER_PORT 8388
ENV METHOD aes-256-cfb
ENV PASSWORD=
ENV LOCAL_ADDR 0.0.0.0
ENV LOCAL_PORT 1080
ENV TIMEOUT 60
EXPOSE $LOCAL_PORT
CMD ss-local -s "$SERVER_ADDR" \
-p "$SERVER_PORT" \
-m "$METHOD" \
-k "$PASSWORD" \
-b "$LOCAL_ADDR" \
-l "$LOCAL_PORT" \
-t "$TIMEOUT" \
-A \
--fast-open