From 600235effaf3477c014dde1bd2970c8d803107cd Mon Sep 17 00:00:00 2001 From: xxqfamous Date: Thu, 25 May 2023 11:06:03 +0800 Subject: [PATCH] =?UTF-8?q?docker=E9=83=A8=E7=BD=B2=E6=95=B4=E7=90=86=20ge?= =?UTF-8?q?m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++--- Gemfile | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1f37a0cb..4759db3a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Gemfile b/Gemfile index c0df6c3b6..240ca2c7c 100644 --- a/Gemfile +++ b/Gemfile @@ -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'