# $APP_ROOT/Dockerfile

FROM ruby:2.3.3

RUN apt-get update -qq && apt-get install -y build-essential libpq-dev logrotate nginx vim python-software-properties software-properties-common postgresql-client

RUN mkdir /website
WORKDIR /website

ADD Gemfile       /website/Gemfile
ADD Gemfile.lock  /website/Gemfile.lock
ADD vendor/cache  /website/vendor/cache
RUN bundle install

ADD . /website
