ARG RUBY_VERSION FROM ruby:${RUBY_VERSION} WORKDIR /home/app COPY Gemfile Gemfile.lock gemfiles ./ ARG GEMFILE ENV BUNDLE_GEMFILE=${GEMFILE} RUN gem install bundler && bundle install CMD ["bundle", "exec", "rake"]