mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 13:03:50 +00:00
Update dependencies in Dockerfile (#732)
This commit is contained in:
committed by
Max Lv
parent
1e649ea5d6
commit
71bf7aae3f
@@ -5,14 +5,13 @@
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
ENV SS_VER 2.4.6
|
||||
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
|
||||
ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev.git
|
||||
ENV SS_DIR shadowsocks-libev
|
||||
ENV SS_DEP git autoconf build-base curl libtool linux-headers openssl-dev asciidoc xmlto
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --update $SS_DEP \
|
||||
&& curl -sSL $SS_URL | tar xz \
|
||||
&& git clone $SS_URL \
|
||||
&& cd $SS_DIR \
|
||||
&& ./configure \
|
||||
&& make install \
|
||||
@@ -27,6 +26,7 @@ ENV PASSWORD=
|
||||
ENV METHOD aes-256-cfb
|
||||
ENV TIMEOUT 300
|
||||
ENV DNS_ADDR 8.8.8.8
|
||||
ENV DNS_ADDR_2 8.8.4.4
|
||||
|
||||
EXPOSE $SERVER_PORT
|
||||
EXPOSE $SERVER_PORT/udp
|
||||
@@ -38,4 +38,5 @@ CMD ss-server -s $SERVER_ADDR \
|
||||
-t $TIMEOUT \
|
||||
--fast-open \
|
||||
-d $DNS_ADDR \
|
||||
-d $DNS_ADDR_2 \
|
||||
-u
|
||||
|
||||
@@ -2,7 +2,7 @@ FROM ubuntu:latest
|
||||
|
||||
MAINTAINER Sah Lee <contact@leesah.name>
|
||||
|
||||
ENV DEPENDENCIES git-core build-essential autoconf libtool libssl-dev
|
||||
ENV DEPENDENCIES git-core build-essential autoconf libtool libssl-dev asciidoc xmlto
|
||||
ENV BASEDIR /tmp/shadowsocks-libev
|
||||
ENV SERVER_PORT 8338
|
||||
|
||||
|
||||
Reference in New Issue
Block a user