FROM ubuntu:xenial
MAINTAINER Andrey Abakumov "a-abakumov@yandex-team.ru"

ENV DEBIAN_FRONTEND noninteractive
ENV DIST xenial

RUN set -xe && \
    apt-get update -y && \
    apt-get upgrade -y && \
    apt-get install -y supervisor && \
    apt clean

ADD hunter /hunter
ADD /conf.d /conf.d
WORKDIR /

CMD /usr/bin/supervisord -n -c /conf.d/supervisor/supervisord.conf
