Created
July 22, 2015 20:54
-
-
Save colinpetruno/5ca89ed9a4e69f18c8b4 to your computer and use it in GitHub Desktop.
DockerFile Base
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: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