Dockerfile
FROM ruby:3.0.1
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client cmake npm
RUN mkdir /var/app
WORKDIR /var/app
COPY Gemfile .
COPY Gemfile.lock .
RUN gem update --system && gem install bundler
RUN bundle install --jobs 4
RUN bundle exec rails db:setup RAILS_ENV=development
COPY . .
CMD ["rails", "server", "-b", "0.0.0.0"]