Browse Source

docker部署整理 gem

pull/336/head
xxqfamous 3 years ago
parent
commit
600235effa
2 changed files with 4 additions and 3 deletions
  1. +2
    -3
      Dockerfile
  2. +2
    -0
      Gemfile

+ 2
- 3
Dockerfile View File

@@ -10,13 +10,12 @@ RUN /bin/bash -l -c 'gem sources --add https://gems.ruby-china.com/ --remove htt

RUN /bin/bash -l -c 'gem update --system'

RUN /bin/bash -l -c 'gem install bundler -v 2.3.26'
RUN /bin/bash -l -c 'gem install rake'

RUN rm -rf Gemfile.lock

RUN cp config/configuration.yml.example config/configuration.yml
RUN cp config/database.yml.example config/database.yml
RUN cp config/environments/production.rb.example config/environments/production.rb
RUN cp config/secrets.yml.example config/secrets.yml
RUN touch config/redis.yml
RUN touch config/elasticsearch.yml



+ 2
- 0
Gemfile View File

@@ -20,6 +20,8 @@ gem 'bootsnap', '>= 1.1.0', require: false

gem 'chinese_pinyin'

gem 'loofah','~> 2.20.0'

gem 'rack-cors'
gem 'redis-rails'
gem 'roo-xls'


Loading…
Cancel
Save