Created
December 1, 2015 12:29
-
-
Save Arcrammer/028c83e687746fd6d80d to your computer and use it in GitHub Desktop.
Rails Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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