From 9f4b9f79542c5d51c8229e306f8ae0c98574e808 Mon Sep 17 00:00:00 2001 From: xuty Date: Fri, 9 Mar 2018 12:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=9B=BD=E5=86=85Gem?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f1fa165..569c2d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,10 @@ ADD ./ /app WORKDIR /app # 使用国内中科大镜像源加快apt速度 COPY ./sources.list /etc/apt/sources.list -RUN apt-get update && apt-get install -y locales locales-all ttf-wqy-microhei ffmpeg cron && \ - bundle install +RUN apt-get update && apt-get install -y locales locales-all ttf-wqy-microhei ffmpeg cron +# 使用国内Gem镜像 +RUN gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/ +RUN bundle install # 定时任务 RUN crontab cron-sorry CMD cron && ruby src/sorry.rb