Browse Source

fix a dependency error in Dockerfile (#824)

pull/829/head
Samuel X. S. Tseng 8 years ago
committed by Max Lv
parent
commit
6e48d25eab
1 changed files with 5 additions and 4 deletions
  1. 9
      docker/alpine/Dockerfile

9
docker/alpine/Dockerfile

@ -7,17 +7,18 @@ MAINTAINER kev <noreply@datageek.info>
ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev.git ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev.git
ENV SS_DIR shadowsocks-libev 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 \ RUN set -ex \
&& apk add --update $SS_DEP \
&& apk add --update $SS_DEP $SS_BUILD_DEP\
&& git clone $SS_URL \ && git clone $SS_URL \
&& cd $SS_DIR \ && cd $SS_DIR \
&& ./configure \ && ./configure \
&& make install \ && make install \
&& cd .. \ && cd .. \
&& rm -rf $SS_DIR \ && rm -rf $SS_DIR \
&& apk del --purge $SS_DEP \
&& apk del --purge $SS_BUILD_DEP \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
ENV SERVER_ADDR 0.0.0.0 ENV SERVER_ADDR 0.0.0.0
@ -39,4 +40,4 @@ CMD ss-server -s $SERVER_ADDR \
--fast-open \ --fast-open \
-d $DNS_ADDR \ -d $DNS_ADDR \
-d $DNS_ADDR_2 \ -d $DNS_ADDR_2 \
-u
-u
Loading…
Cancel
Save