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


COPY usr /usr
COPY deploy /

RUN getent group ghost || groupadd --system ghost
RUN getent passwd ghost || useradd --system --shell /bin/false --gid ghost ghost

RUN chmod -R 644 /etc/cron.d/


ENTRYPOINT ["/opt/entrypoint.sh"]

CMD ["supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
