diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index c3c259af8b..8cb5dd8121 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -75,7 +75,10 @@ RUN set -xe; \ wget -O php.tar.xz.asc "$PHP_ASC_URL"; \ export GNUPGHOME="$(mktemp -d)"; \ for key in $GPG_KEYS; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ + gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" \ + || gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "$key" \ + || gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" \ + || gpg --keyserver pgp.mit.edu --recv-keys "$key"; \ done; \ gpg --batch --verify php.tar.xz.asc php.tar.xz; \ rm -rf "$GNUPGHOME"; \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index feed902569..48d02c835c 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -83,7 +83,10 @@ RUN set -xe; \ wget -O php.tar.xz.asc "$PHP_ASC_URL"; \ export GNUPGHOME="$(mktemp -d)"; \ for key in $GPG_KEYS; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ + gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" \ + || gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "$key" \ + || gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" \ + || gpg --keyserver pgp.mit.edu --recv-keys "$key"; \ done; \ gpg --batch --verify php.tar.xz.asc php.tar.xz; \ rm -rf "$GNUPGHOME"; \