FROM ruby:2.3.0
RUN apt-get update -qq && apt-get install -y build-essential netcat libmagic-dev
RUN gem install bundler --version 1.14

# in dev builds, the git root is mapped to the container's /app/
WORKDIR /app

COPY Gemfile Gemfile.lock /app/
RUN bundle config build.nokogiri --use-system-libraries
RUN bundle install
