Determine Ruby Version in Images (regular expression cve)

From the Dockerfile in discourse_docker, e.g.: