Sign inSign up

toxix/debian-rails

By toxix

•Updated over 9 years ago

Debian based Ruby on Rails incl. imagemagick and vips

Image
2

729

toxix/debian-rails repository overview

⁠docker_debian_rails

Docker file for Ruby on Rails based on Debian.

Including support for imagemagick and vips. Postgres or mysql libs are installed as well.

⁠Using it for your rails application

Put this docker file in your rails root directory (or modify it to your needs):

# rails_root_dir/Docker

FROM toxix/debian-rails
# For including develop tools like phantomjs use
#FROM toxix/debian-rails:dev

# Define working directory.
WORKDIR /app

ADD Gemfile /app/
ADD Gemfile.lock /app/

ENV GEM_HOME /gems/
# todo: move bundle install into an startup script. This is usefull because gems can be in a seperate docker volume and change at runtime
RUN bundle install

ADD . /app

VOLUME ["/gems", "/app"]

# Define default command.
CMD /start_rails.sh

# Expose ports.
EXPOSE 8080

Compile yor docker image with docker build [rails_root_directory] where '[rails_root_directory]' is the path to your rails root directory. Run your fresh image with docker and have fun.

If you consider to use PhantomJs, check out the dev-branch.

Tag summary

Content type

Image

Digest

sha256:4324f8de1…

Size

280.4 MB

Last updated

over 9 years ago

docker pull toxix/debian-rails