2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01: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 FROM alpine
MAINTAINER kev <noreply@datageek.info> MAINTAINER kev <noreply@datageek.info>
RUN apk update \ RUN apk add --update curl python \
&& apk add curl python \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \ && curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
&& pip install shadowsocks \ && pip install shadowsocks \
&& apk del curl \ && apk del --purge curl \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
ENV SERVER_ADDR 0.0.0.0 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_DIR shadowsocks-libev-$SS_VER
ENV SS_DEP curl linux-headers build-base autoconf libtool openssl-dev ENV SS_DEP curl linux-headers build-base autoconf libtool openssl-dev
RUN apk update \ RUN apk add --update $SS_DEP \
&& apk add $SS_DEP \
&& curl -sSL $SS_URL | tar xz \ && curl -sSL $SS_URL | tar xz \
&& cd $SS_DIR \ && cd $SS_DIR \
&& ./configure \ && ./configure \
&& make install \ && make install \
&& cd .. \ && cd .. \
&& rm -rf $SS_DIR \ && rm -rf $SS_DIR \
&& apk del $SS_DEP \ && apk del --purge $SS_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