2015-09-16 10:08:42 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for shadowsocks-arm
|
|
|
|
#
|
|
|
|
|
2015-09-19 17:45:35 +02:00
|
|
|
FROM vimagick/alpine-arm:edge
|
2015-09-16 10:08:42 +02:00
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
2015-12-24 16:09:35 +02:00
|
|
|
RUN set -ex \
|
|
|
|
&& apk add -U curl libsodium python \
|
2015-09-16 10:08:42 +02:00
|
|
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
|
|
|
|
&& pip install shadowsocks \
|
|
|
|
&& apk del curl \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
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 300
|
|
|
|
|
|
|
|
EXPOSE $LOCAL_PORT
|
|
|
|
|
|
|
|
CMD sslocal -s "$SERVER_ADDR" \
|
|
|
|
-p "$SERVER_PORT" \
|
|
|
|
-m "$METHOD" \
|
|
|
|
-k "$PASSWORD" \
|
|
|
|
-b "$LOCAL_ADDR" \
|
|
|
|
-l "$LOCAL_PORT" \
|
|
|
|
-t "$TIMEOUT" \
|
|
|
|
--fast-open
|