From 377d78981c72ba711284aec02371306f7ebbf5c2 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 30 Oct 2020 11:50:49 +0100 Subject: [PATCH] Fallback to other key servers if ha.pool.sks-keyservers.net is not available --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a7cdea56..08b3f8fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -157,7 +157,10 @@ RUN curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wge ############################## RUN wget --tries=5 -O phive.phar https://phar.io/releases/phive.phar \ && wget --tries=5 -O phive.phar.asc https://phar.io/releases/phive.phar.asc \ - && gpg --keyserver pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79 \ + && PHAR_KEY_ID="0x9D8A98B29B2D5D79" \ + && ( gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$PHAR_KEY_ID" \ + || gpg --keyserver pgp.mit.edu --recv-keys "$PHAR_KEY_ID" \ + || gpg --keyserver keyserver.pgp.com --recv-keys "$PHAR_KEY_ID" ) \ && gpg --verify phive.phar.asc phive.phar \ && chmod +x phive.phar \ && mv phive.phar /usr/local/bin/phive \