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

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

ARG   installdir
ARG   deploydir
COPY  $installdir /
COPY  $deploydir /

RUN   chmod 744 /usr/sbin/entrypoint.sh

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