2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

update shadowsocks-libev

This commit is contained in:
kev
2017-02-02 11:28:00 +08:00
parent f24f0716fe
commit 9e09541e88
2 changed files with 38 additions and 19 deletions

View File

@@ -2,40 +2,59 @@
# Dockerfile for shadowsocks-libev # Dockerfile for shadowsocks-libev
# #
FROM alpine FROM alpine:3.5
MAINTAINER kev <noreply@easypi.info> MAINTAINER EasyPi Software Foundation
ENV SS_VER 2.4.6 ENV SS_VER 2.6.3
ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar.gz ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar.gz
ENV SS_DIR shadowsocks-libev-$SS_VER ENV SS_DIR shadowsocks-libev-$SS_VER
ENV SS_DEP autoconf build-base curl libtool linux-headers openssl-dev
RUN set -ex \ RUN set -ex \
&& apk add --update $SS_DEP \ && apk add --no-cache libcrypto1.0 \
libev \
libsodium \
pcre \
udns \
&& apk add --no-cache \
--virtual TMP autoconf \
automake \
build-base \
curl \
gettext-dev \
libev-dev \
libsodium-dev \
libtool \
linux-headers \
openssl-dev \
pcre-dev \
tar \
udns-dev \
&& curl -sSL $SS_URL | tar xz \ && curl -sSL $SS_URL | tar xz \
&& cd $SS_DIR \ && cd $SS_DIR \
&& ./configure \ && curl -sSL https://github.com/shadowsocks/ipset/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libipset \
&& curl -sSL https://github.com/shadowsocks/libcork/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libcork \
&& ./autogen.sh \
&& ./configure --disable-documentation \
&& make install \ && make install \
&& cd .. \ && cd .. \
&& rm -rf $SS_DIR \ && rm -rf $SS_DIR \
&& apk del --purge $SS_DEP \ && apk del TMP
&& rm -rf /var/cache/apk/*
ENV SERVER_ADDR 0.0.0.0 ENV SERVER_ADDR 0.0.0.0
ENV SERVER_PORT 8388 ENV SERVER_PORT 8388
ENV PASSWORD=
ENV METHOD aes-256-cfb ENV METHOD aes-256-cfb
ENV TIMEOUT 300 ENV PASSWORD=
ENV TIMEOUT 60
ENV DNS_ADDR 8.8.8.8 ENV DNS_ADDR 8.8.8.8
EXPOSE $SERVER_PORT/tcp EXPOSE $SERVER_PORT/tcp
EXPOSE $SERVER_PORT/udp EXPOSE $SERVER_PORT/udp
CMD ss-server -s $SERVER_ADDR \ CMD ss-server -s "$SERVER_ADDR" \
-p $SERVER_PORT \ -p "$SERVER_PORT" \
-k ${PASSWORD:-$(hostname)} \ -m "$METHOD" \
-m $METHOD \ -k "$PASSWORD" \
-t $TIMEOUT \ -t "$TIMEOUT" \
--fast-open \ -d "$DNS_ADDR" \
-d $DNS_ADDR \ -u \
-u --fast-open $OPTIONS

View File

@@ -1,7 +1,7 @@
shadowsocks-libev shadowsocks-libev
================= =================
> :warning: This project has been moved to <https://github.com/EasyPi/docker-shadowsocks-libev>. > ⚠️ This docker image becomes obsolete, and has moved to <https://github.com/EasyPi/docker-shadowsocks-libev>.
![](https://badge.imagelayers.io/vimagick/shadowsocks-libev:latest.svg) ![](https://badge.imagelayers.io/vimagick/shadowsocks-libev:latest.svg)