1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
This commit is contained in:
kev 2015-06-16 16:25:37 +08:00
parent 7f640867f7
commit 3495cc5ad3
2 changed files with 4 additions and 6 deletions

View File

@ -5,11 +5,10 @@
FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apk update \
&& apk add curl python \
RUN apk add --update curl python \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install shadowsocks \
&& apk del curl \
&& apk del --purge curl \
&& rm -rf /var/cache/apk/*
ENV SERVER_ADDR 0.0.0.0

View File

@ -10,15 +10,14 @@ ENV SS_URL https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar
ENV SS_DIR shadowsocks-libev-$SS_VER
ENV SS_DEP curl linux-headers build-base autoconf libtool openssl-dev
RUN apk update \
&& apk add $SS_DEP \
RUN apk add --update $SS_DEP \
&& curl -sSL $SS_URL | tar xz \
&& cd $SS_DIR \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf $SS_DIR \
&& apk del $SS_DEP \
&& apk del --purge $SS_DEP \
&& rm -rf /var/cache/apk/*
ENV SERVER_ADDR 0.0.0.0