Public Repository

Last pushed: 2 years ago
Short Description
Minimal Ruby-on-Rails image. Created using textlab/ubuntu-essential as a base.
Full Description

Small (~366MB) image set up for Ruby on Rails. The folder /usr/src/app is created for running your app in. The folder /usr/share/build is also created by default for building your app in.

Example Dockerfile (with several commands for cleaning up the resulting image to keep it small):

FROM red5d/rails-minimal:latest
COPY . /usr/src/build
WORKDIR /usr/src/build
RUN ["apt-get", "install", "-y", "g++"]
RUN ["bundle", "install"]
RUN ["apt-get", "clean", "autoclean"]
RUN ["apt-get", "autoremove", "-y"]
RUN ["rm", "-rf", "/usr/src/build"]
RUN ["apt-get", "remove", "-y", "g++", "ruby-dev"]
RUN ["rm", "-rf", "/var/lib/{apt,dpkg,cache,log}"]
RUN ["gem", "cleanup"]
RUN ["gem", "sources", "-c"]
EXPOSE 3000
COPY . /usr/src/app
WORKDIR /usr/src/app
CMD ["rails", "server", "-b", "0.0.0.0", "-p", "3000"]
Docker Pull Command
Owner
red5d

Comments (0)