FROM nginx:1.13.11-alpine

RUN apk add --no-cache --update build-base ruby ruby-dev
RUN gem install --no-ri --no-rdoc json rest-client

ADD . /src

ADD nginx.conf /etc/nginx/nginx.conf
ADD .htpasswd /etc/nginx/.htpasswd
ADD www /var/www

CMD /src/run.sh
