# Use an official Python runtime as a parent image
FROM registry.yandex.net/ubuntu:xenial
MAINTAINER Viktor Druchinin <viknet@yandex-team.ru>

ENV WORKDIR /dialer
WORKDIR $WORKDIR

ADD /etc/apt/sources.list.d/yandex-unstable.list /etc/apt/sources.list.d/
RUN apt-get update
RUN apt-get install -y --allow-downgrades --allow-change-held-packages \
    redis-server \
    supervisor

ADD . /
RUN chmod +x manage

CMD ["/usr/bin/supervisord"]
