Sign inSign up

szmoto/rails-guides

By szmoto

•Updated over 5 years ago

Image
0

796

szmoto/rails-guides repository overview

FROM ruby:2.4.1

RUN mkdir /app WORKDIR /app

RUN apt-get update && apt-get -y install imagemagick

RUN mkdir /tmp/kindlegen && cd /tmp/kindlegen &&
wget https://download.fastgit.org/Technosoft2000/docker-calibre-web/releases/download/kindlegen/kindlegen_linux_2.6_i386_v2_9.tar.gz⁠ &&
tar xfz kindlegen_linux_2.6_i386_v2_9.tar.gz &&
mv kindlegen /usr/local/bin/

RUN gem install bundler

COPY Gemfile /app COPY Gemfile.lock /app RUN gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/⁠ --remove https://rubygems.org/⁠ &&
bundle config mirror.https://rubygems.org⁠ https://mirrors.tuna.tsinghua.edu.cn/rubygems⁠ &&
bundle install

ENV GUIDES_LANGUAGE=zh-CN ENV RAILS_VERSION=v5.1.1

Tag summary

Content type

Image

Digest

Size

321.6 MB

Last updated

over 5 years ago

docker pull szmoto/rails-guides