FROM ruby:2.4.3-alpine3.7

RUN apk --no-cache add build-base bash jq

ADD Gemfile /opt/angarius/Gemfile
ADD Gemfile.lock /opt/angarius/Gemfile.lock

WORKDIR /opt/angarius

RUN bundle install
ADD angarius /opt/angarius/angarius

CMD ["/opt/angarius/angarius"]
