Browse Source

Update dependencies in Dockerfile (#732)

pull/746/head
Asynchronous Interruption #0 8 years ago
committed by Max Lv
parent
commit
71bf7aae3f
2 changed files with 7 additions and 6 deletions
  1. 11
      docker/alpine/Dockerfile
  2. 2
      docker/ubuntu/Dockerfile

11
docker/alpine/Dockerfile

@ -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
docker/ubuntu/Dockerfile

@ -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

Loading…
Cancel
Save