mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add shadowsocks-libev-arm
This commit is contained in:
parent
67d67328b2
commit
fd66d4969d
40
shadowsocks/libev-arm/Dockerfile
Normal file
40
shadowsocks/libev-arm/Dockerfile
Normal file
@ -0,0 +1,40 @@
|
||||
#
|
||||
# Dockerfile for shadowsocks-libev
|
||||
#
|
||||
|
||||
FROM hypriot/rpi-alpine-scratch
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
ENV SS_VER 2.3.3
|
||||
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 autoconf build-base curl libtool linux-headers openssl-dev
|
||||
|
||||
RUN apk add --update $SS_DEP \
|
||||
&& curl -sSL $SS_URL | tar xz \
|
||||
&& cd $SS_DIR \
|
||||
&& ./configure \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -rf $SS_DIR \
|
||||
&& apk del --purge $SS_DEP \
|
||||
&& 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 ss-local -s "$SERVER_ADDR" \
|
||||
-p "$SERVER_PORT" \
|
||||
-m "$METHOD" \
|
||||
-k "$PASSWORD" \
|
||||
-b "$LOCAL_ADDR" \
|
||||
-l "$LOCAL_PORT" \
|
||||
-t "$TIMEOUT" \
|
||||
--fast-open
|
9
shadowsocks/libev-arm/docker-compose.yml
Normal file
9
shadowsocks/libev-arm/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
shadowsocks:
|
||||
image: vimagick/shadowsocks-libev-arm
|
||||
ports:
|
||||
- "1080:1080"
|
||||
environment:
|
||||
- SERVER_ADDR=datageek.info
|
||||
- METHOD=chacha20
|
||||
- PASSWORD=9MLSpPmNt
|
||||
restart: always
|
@ -5,7 +5,7 @@
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
ENV SS_VER 2.3.2
|
||||
ENV SS_VER 2.3.3
|
||||
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 autoconf build-base curl libtool linux-headers openssl-dev
|
||||
|
Loading…
Reference in New Issue
Block a user