Created
February 16, 2016 16:46
-
-
Save csexton/f42783bba414fb094e40 to your computer and use it in GitHub Desktop.
Getting started with Rails and Docker
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.3 | |
RUN apt-get update -qq && apt-get install -y build-essential | |
# for postgres | |
RUN apt-get install -y libpq-dev | |
# for nokogiri | |
RUN apt-get install -y libxml2-dev libxslt1-dev | |
# for capybara-webkit | |
#RUN apt-get install -y libqt4-webkit libqt4-dev xvfb | |
# for a JS runtime | |
#RUN apt-get install -y nodejs | |
ENV APP_HOME /app | |
RUN mkdir $APP_HOME | |
WORKDIR $APP_HOME | |
ADD Gemfile* $APP_HOME/ | |
RUN bundle install | |
ADD . $APP_HOME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment