From 867992f4353d5aeb954da34f2b99def0a10c7c78 Mon Sep 17 00:00:00 2001 From: Tomasz Janowski Date: Sun, 28 Oct 2018 16:45:40 +1100 Subject: [PATCH 1/2] Run apk with --update --no-cache flags to fetch a fresh list of dependencies --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5ecbae0..d8688a39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:3.8 AS rootanchors -RUN apk add -q --progress wget perl-xml-xpath +RUN apk add -q --update --no-cache --progress wget perl-xml-xpath RUN wget -q https://www.internic.net/domain/named.root -O named.root && \ echo "602f28581292bf5e50c8137c955173e6 named.root" > hashes.md5 && \ md5sum -c hashes.md5 @@ -22,7 +22,7 @@ RUN wget -q https://data.iana.org/root-anchors/root-anchors.xml -O root-anchors. done; FROM alpine:3.8 AS blocks -RUN apk add -q --progress wget ca-certificates sed +RUN apk add -q --update --no-cache --progress wget ca-certificates sed RUN hostnames=$(wget -qO- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | \ sed '/\(^[ \|\t]*#\)\|\(^[ ]\+\)\|\(^$\)\|\(^[\n\|\r\|\r\n][ \|\t]*$\)\|\(^127.0.0.1\)\|\(^255.255.255.255\)\|\(^::1\)\|\(^fe80\)\|\(^ff00\)\|\(^ff02\)\|\(^0.0.0.0 0.0.0.0\)/d' | \ sed 's/\([ \|\t]*#.*$\)\|\(\r\)\|\(0.0.0.0 \)//g')$'\n'$( \ From 559bec0ba00f9a26dafe0a59a0607f6cfb6b4b21 Mon Sep 17 00:00:00 2001 From: Tomasz Janowski Date: Sun, 28 Oct 2018 16:46:18 +1100 Subject: [PATCH 2/2] Update md5 hash of the named.root file --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d8688a39..9497718b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.8 AS rootanchors RUN apk add -q --update --no-cache --progress wget perl-xml-xpath RUN wget -q https://www.internic.net/domain/named.root -O named.root && \ - echo "602f28581292bf5e50c8137c955173e6 named.root" > hashes.md5 && \ + echo "3a434d30e41db78c2ccfdaf29be460d0 named.root" > hashes.md5 && \ md5sum -c hashes.md5 RUN wget -q https://data.iana.org/root-anchors/root-anchors.xml -O root-anchors.xml && \ echo "1b2a628d1ff22d4dc7645cfc89f21b6a575526439c6706ecf853e6fff7099dc8 root-anchors.xml" > hashes.sha256 && \