Skip to content

Docker file for Ruby on Rails based on Debian. Image including support for imagemagick and vips. Libs to connect to postgres or mysql are installed as well.

License

Notifications You must be signed in to change notification settings

toxix/docker_debian_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Docker file for Ruby on Rails based on Debian. Image including support for imagemagick and vips. Libs to connect to postgres or mysql are installed as well.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages