Sign inSign up

flojon/rails

By flojon

Updated over 9 years ago

A faster way to build ruby on rails images

Image
0

262

flojon/rails repository overview

This image is based of ruby 2.4 and has rails baked in to avoid building rails all the time...

Example usage: FROM flojon/rails:latest

RUN mkdir -p /usr/src/app WORKDIR /usr/src/app

COPY Gemfile . COPY Gemfile.lock . RUN bundle install --without test development

COPY . .

ENV RAILS_ENV production

RUN rails assets:precompile

EXPOSE 3000 CMD ["puma", "-b", "tcp://0.0.0.0:3000", "-e", "production"]

Tag summary

Content type

Image

Digest

Size

297 MB

Last updated

over 9 years ago

docker pull flojon/rails