Skip to content

Instantly share code, notes, and snippets.

@obskein
Forked from Arcrammer/Dockerfile
Created January 21, 2016 22:57
Show Gist options
  • Save obskein/8feead9425288bc115f3 to your computer and use it in GitHub Desktop.
Save obskein/8feead9425288bc115f3 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