For CI builds it's better to use the below at the image level if possible, or inside the build:
CI
sudo sed -i 's/openssl_conf = openssl_init/#openssl_conf = openssl_init/g' /etc/ssl/openssl.cnf