From d0407736340fb2d91d10bad17d794c67ae52afbb Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 28 Feb 2018 13:18:03 +0300 Subject: [PATCH] fix build error "Address not available" (cherry picked from commit a3b384fd875fd70e4244ef02b37791ce8b1194e9) --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d2fc460..249d3a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,11 @@ RUN set -x && \ RUN set -x && \ cd /tmp/build && \ export GNUPGHOME="$(mktemp -d)" && \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ${SQUID_SIG_KEY} && \ + ( \ + gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys ${SQUID_SIG_KEY} || \ + gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys ${SQUID_SIG_KEY} || \ + gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys ${SQUID_SIG_KEY} \ + ) && \ gpg --batch --verify squid-${SQUID_VER}.tar.gz.asc squid-${SQUID_VER}.tar.gz && \ rm -rf "$GNUPGHOME"