Update dependencies in Dockerfile (#732)

This commit is contained in:
Asynchronous Interruption #0
2016-07-20 20:24:04 -05:00
committed by Max Lv
parent 1e649ea5d6
commit 71bf7aae3f
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -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
+1 -1
View File
@@ -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