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