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

# Зависимости для мониторинга:
RUN apt-get update \
    && apt-get install -y \
        python-yaml \
        yandex-yasmagent \
    && 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"]