I have brand new rails new testapp app.
rails new testapp
I create Dockerfile:
FROM ruby:2.7.2 WORKDIR /app COPY Gemfile Gemfile.lock ./ RUN bundle install COPY