FROM maillists-pybase:local

ENV CELERY_DEFAULT_WORKERS=2

RUN ln -s /etc/supervisor/maillists/ml-celery.conf /etc/supervisor/conf.d/ml-celery.conf

RUN ln -s /etc/monrun/conf.default/cron.conf /etc/monrun/conf.d/cron.conf
RUN ln -s /etc/monrun/conf.default/graphite_sender.conf /etc/monrun/conf.d/graphite_sender.conf
RUN ln -s /etc/monrun/ml-tasks-checks.conf /etc/monrun/conf.d/ml-checks.conf

COPY etc/cron.d/yandex-tools-maillists-maintenance.*.cron.d /etc/

ENTRYPOINT ["/docker-entrypoint-tasks.sh"]

CMD ["supervisord", "-n"]