FROM registry.yandex.net/mail/mail-trusty-common:latest

RUN apt-get update \
    && apt-get -y install \
    python3-pip \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN pip3 install psycopg2-binary

COPY . /

CMD ["/usr/sbin/entrypoint.sh"]
