Sign inSign up

red5d/rails-minimal

By red5d

•Updated almost 11 years ago

Minimal Ruby-on-Rails image. Created using textlab/ubuntu-essential as a base.

Image
0

510

red5d/rails-minimal repository overview

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

Tag summary

Content type

Image

Digest

sha256:9054604cb…

Size

152 MB

Last updated

almost 11 years ago

docker pull red5d/rails-minimal