From 6e48d25eab5f6db3a4cce303fed703bf01f448e9 Mon Sep 17 00:00:00 2001 From: "Samuel X. S. Tseng" Date: Sun, 11 Sep 2016 14:40:27 +0800 Subject: [PATCH] fix a dependency error in Dockerfile (#824) --- docker/alpine/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index e5347ce1..4f68846b 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -7,17 +7,18 @@ MAINTAINER kev 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 +ENV SS_DEP pcre +ENV SS_BUILD_DEP git autoconf build-base curl libtool linux-headers openssl-dev asciidoc xmlto pcre-dev RUN set -ex \ - && apk add --update $SS_DEP \ + && apk add --update $SS_DEP $SS_BUILD_DEP\ && git clone $SS_URL \ && cd $SS_DIR \ && ./configure \ && make install \ && cd .. \ && rm -rf $SS_DIR \ - && apk del --purge $SS_DEP \ + && apk del --purge $SS_BUILD_DEP \ && rm -rf /var/cache/apk/* ENV SERVER_ADDR 0.0.0.0 @@ -39,4 +40,4 @@ CMD ss-server -s $SERVER_ADDR \ --fast-open \ -d $DNS_ADDR \ -d $DNS_ADDR_2 \ - -u +-u