Public Repository

Last pushed: 4 months ago
Short Description
A faster way to build ruby on rails images
Full Description

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"]

Docker Pull Command
Owner
flojon

Comments (0)