美文网首页
Dockerfile_rails_production

Dockerfile_rails_production

作者: 求墨者 | 来源:发表于2022-07-20 10:45 被阅读0次
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

网友评论

      本文标题:Dockerfile_rails_production

      本文链接:https://www.haomeiwen.com/subject/mwueirtx.html