1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
dockerfiles/shadowsocks/Dockerfile

33 lines
840 B
Docker
Raw Normal View History

2015-02-09 14:40:25 +00:00
#
2015-05-27 08:52:12 +00:00
# Dockerfile for shadowsocks
2015-02-09 14:40:25 +00:00
#
2015-06-16 07:07:59 +00:00
FROM alpine
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2015-02-09 14:40:25 +00:00
2015-12-24 14:09:35 +00:00
RUN set -ex \
&& echo 'http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
2015-09-16 08:08:42 +00:00
&& apk add -U curl libsodium python \
2015-05-27 08:52:12 +00:00
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install --no-cache-dir shadowsocks \
2015-09-16 08:08:42 +00:00
&& apk del curl \
2015-06-16 07:07:59 +00:00
&& rm -rf /var/cache/apk/*
2015-02-09 14:40:25 +00:00
2015-05-27 08:52:12 +00:00
ENV SERVER_ADDR 0.0.0.0
ENV SERVER_PORT 8388
2015-06-16 00:42:06 +00:00
ENV METHOD aes-256-cfb
2015-09-16 08:08:42 +00:00
ENV PASSWORD=
2015-06-16 00:42:06 +00:00
ENV TIMEOUT 300
ENV WORKERS 10
2015-06-16 01:11:54 +00:00
EXPOSE $SERVER_PORT
2015-02-09 14:40:25 +00:00
2015-09-16 08:08:42 +00:00
CMD ssserver -s "$SERVER_ADDR" \
-p "$SERVER_PORT" \
-k "${PASSWORD:-$(hostname)}" \
-m "$METHOD" \
-t "$TIMEOUT" \
--workers "$WORKERS" \
--fast-open
2015-05-27 08:52:12 +00:00