Skip to content

Instantly share code, notes, and snippets.

@csexton
Created February 16, 2016 16:46
Show Gist options
  • Save csexton/f42783bba414fb094e40 to your computer and use it in GitHub Desktop.
Save csexton/f42783bba414fb094e40 to your computer and use it in GitHub Desktop.
Getting started with Rails and Docker
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