Parse multiple ports from environment

This commit is contained in:
Christophe Mehay 2017-02-09 09:39:02 +01:00
parent f5b25abd3c
commit 3843fe5bd3
5 changed files with 17 additions and 11 deletions

View file

@ -2,11 +2,11 @@ FROM alpine
ENV HOME /var/lib/tor
RUN apk add --no-cache git libevent-dev openssl-dev gcc make automake ca-certificates autoconf musl-dev && \
RUN apk add --no-cache git libevent-dev openssl-dev gcc make automake ca-certificates autoconf musl-dev coreutils && \
mkdir -p /usr/local/src/ && \
git clone https://git.torproject.org/tor.git /usr/local/src/tor && \
cd /usr/local/src/tor && \
git checkout $(git tag | tail -1) && \
git checkout $(git branch -a | grep 'release' | sort -V | tail -1) && \
./autogen.sh && \
./configure \
--disable-asciidoc \
@ -19,7 +19,7 @@ RUN apk add --no-cache git libevent-dev openssl-dev gcc make automake ca-cer
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools pycrypto && \
apk del git libevent-dev openssl-dev make automake python3-dev gcc autoconf musl-dev && \
apk del git libevent-dev openssl-dev make automake python3-dev gcc autoconf musl-dev coreutils && \
apk add --no-cache libevent openssl
ADD assets/entrypoint-config.yml /