FROM ruby:2.3.0
RUN apt-get update -qq && apt-get install -y build-essential netcat
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 install
