Skip to content

Instantly share code, notes, and snippets.

@colinpetruno
Created July 22, 2015 20:54
Show Gist options
  • Save colinpetruno/5ca89ed9a4e69f18c8b4 to your computer and use it in GitHub Desktop.
Save colinpetruno/5ca89ed9a4e69f18c8b4 to your computer and use it in GitHub Desktop.
DockerFile Base
FROM ruby:2.2.0
RUN apt-get update -qq && apt-get install -y build-essential
ENV APP_HOME /app/<app-name>
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
RUN test -f $APP_HOME/tmp/pids/server.pid && rf $APP_HOME/tmp/pids/server.pid; true
ADD . $APP_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment