When the hard-coded keyserver in docker-entrypoint.sh is not available or too slow then GnuPG will fail to fetch the needed pubkey and build will fail with "cannot assign address".
Here's a workaround to try several keyservers in turn that I found in another repo with the same issue.