FROM registry.yandex.net/rtc-base/bionic:stable

RUN sed -e s/'archive.ubuntu'/'ru.archive.ubuntu'/g -i /etc/apt/sources.list

RUN apt-get update && P2P_WAIT_TIMEOUT=10 DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes \
  yandex-solomon-agent-bin=1:17.0 \
  && apt-get clean

COPY docker/solomon/solomon.conf /etc/solomon/

CMD ["/usr/local/bin/solomon-agent", "--config", "/etc/solomon/solomon.conf"]
