title: How to Update dockerfile to set ruby version using rvm
body: <p>I am new to docker and I am working on a project where we are running application locally in docker container. There is a dockerfile that is pulling base image from amazonlinux. I am using docker-compose for the workflow. I have step to install ruby 2.7.5 using rvm but when I try to run tests using docker-compose <code>docker-compose run test bundle exec bin/rspec</code> I get error <code>Your Ruby version is 3.0.3, but your Gemfile specified 2.7.5</code>. You can see it is picking up the ruby version from amazon-linux-extras and not rvm
  I looked at bunch of threads but no luck so far. Is there any way I can set the ruby version to 2.7.5 ?</p>