FROM registry.yandex.net/mail/mail-base-focal:latest

# Зависимости для мониторинга:
RUN apt-get update \
    && apt-get install -y \
        python3-geoip \
        python-yaml \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

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

RUN   chmod 744 /app/init/fix_permissions
RUN   /app/init/fix_permissions

CMD ["/app/qloud/entrypoint.sh"]
