Skip to content

Commit

Permalink
使用国内Gem源
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyxtyx committed Mar 9, 2018
1 parent b412346 commit 9f4b9f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Expand Up @@ -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

0 comments on commit 9f4b9f7

Please sign in to comment.