FROM: ruby:2.5.1-alpine3.7,版本比较老了。 mirrors.aliyun.com/rubygems/ 或者清华、中科大的就没有证书的问题。
我也遇到问题 UG[a57142ea] Command: cd /home/apps/www/xxx/releases/20221121024406 && ~/.rvm/bin/rvm default do bundle install --binstubs /home/apps/www/xxxl/shared/bin --path /home/apps/www/xxx/shared/bundle --without development test --deployment --quiet
DEBUG[a57142ea] Could not verify the SSL certificate for https://gems.ruby-china.com/.
DEBUG[a57142ea] There is a chance you are experiencing a man-in-the-middle attack, but most
DEBUG[a57142ea] likely your system doesn't have the CA certificates needed for verification. For
DEBUG[a57142ea] information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
DEBUG[a57142ea] without using SSL, edit your Gemfile sources and change 'https' to 'http'.