Skip to content

Instantly share code, notes, and snippets.

@Arcrammer
Created December 1, 2015 12:29
Show Gist options
  • Save Arcrammer/028c83e687746fd6d80d to your computer and use it in GitHub Desktop.
Save Arcrammer/028c83e687746fd6d80d to your computer and use it in GitHub Desktop.
Rails Dockerfile
FROM ruby:latest
MAINTAINER Alexander Rhett Crammer <Alexander2475914@gmail.com>
# ENV Variables
ENV HOME /home/rails/eximius
# Dependencies required by Rails and RubyGems
RUN apt-get update -qq \
&& apt-get install -y \
build-essential \
nodejs
WORKDIR $HOME/
# Install gems
COPY Gemfile* $HOME/
RUN bundle install --jobs 20
# Add the apps' directory
ADD . $HOME
# Main command to execute when
# the container is started
CMD ["rails", "server", "-b", "0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment