FROM ruby:2.7.6
ENV PROJECT_NAME melon
ENV RAILS_ENV production
RUN mkdir /$PROJECT_NAME
RUN bundle config mirror.https://rubygems.org https://gems.ruby-china.com
WORKDIR /$PROJECT_NAME
ADD $PROJECT_NAME-*.tar.gz ./
RUN bundle config set --local without 'development test'
RUN bundle install
ENTRYPOINT bundle exec puma
网友评论