FROM registry.yandex.net/ubuntu:bionic

RUN echo -e "deb http://crypta-common.dist.yandex.ru/crypta-common stable/amd64/" >> /etc/apt/sources.list
RUN apt-get update && apt-get install supervisor crypta-yabs-graphite-sender-config yabs-graphite-sender --force-yes -y

COPY root /root
COPY supervisor/* /etc/supervisor/conf.d/

RUN chmod +x /root/entrypoint.sh
RUN chmod +x /root/graphite-sender.sh

CMD ["/root/entrypoint.sh"]
