1
1
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-11-22 23:51:59 +01:00

Update unbound

This commit is contained in:
Frank Denis 2019-02-05 18:12:37 +01:00
parent 5191336444
commit 146224fff3

@ -8,18 +8,15 @@ ENV RUNTIME_DEPS bash util-linux coreutils findutils grep libressl ldns ldns-too
RUN set -x && \ RUN set -x && \
apk --update upgrade && apk add $RUNTIME_DEPS $BUILD_DEPS apk --update upgrade && apk add $RUNTIME_DEPS $BUILD_DEPS
ENV UNBOUND_VERSION 1.8.2 ENV UNBOUND_GIT_URL https://github.com/jedisct1/unbound.git
ENV UNBOUND_SHA256 19f2235a8936d89e7dc919bbfcef355de759f220e36bb5e1e931ac000ed04993 ENV UNBOUND_GIT_REVISION 64c4e69b073db13236d278cc98251b4f51cacc0c
ENV UNBOUND_DOWNLOAD_URL https://www.unbound.net/downloads/unbound-${UNBOUND_VERSION}.tar.gz
RUN set -x && \ RUN set -x && \
mkdir -p /tmp/src && \ mkdir -p /tmp/src && \
cd /tmp/src && \ cd /tmp/src && \
wget -O unbound.tar.gz $UNBOUND_DOWNLOAD_URL && \ git clone "$UNBOUND_GIT_URL" && \
echo "${UNBOUND_SHA256} *unbound.tar.gz" | sha256sum -c - && \ git checkout "$UNBOUND_GIT_REVISION" && \
tar xzf unbound.tar.gz && \ cd unbound && \
rm -f unbound.tar.gz && \
cd unbound-${UNBOUND_VERSION} && \
groupadd _unbound && \ groupadd _unbound && \
useradd -g _unbound -s /etc -d /dev/null _unbound && \ useradd -g _unbound -s /etc -d /dev/null _unbound && \
./configure --prefix=/opt/unbound --with-pthreads \ ./configure --prefix=/opt/unbound --with-pthreads \