2022-08-26 06:54:41 +00:00
|
|
|
FROM matomo:fpm-alpine
|
2022-07-08 14:45:09 +00:00
|
|
|
|
2022-08-26 06:54:41 +00:00
|
|
|
RUN apk add --no-cache supervisor && \
|
|
|
|
mkdir /var/log/supervisord /var/run/supervisord && \
|
|
|
|
rm /var/spool/cron/crontabs/root && \
|
|
|
|
echo '*/5 * * * * php /var/www/html/console core:archive --url=https://counter.baalajimaestro.me' > /var/spool/cron/crontabs/www-data && \
|
|
|
|
echo '*/20 * * * * php /var/www/html/console scheduled-tasks:run' >> /var/spool/cron/crontabs/www-data
|
2022-07-08 14:45:09 +00:00
|
|
|
|
2022-08-26 06:54:41 +00:00
|
|
|
COPY supervisord.conf /
|
|
|
|
COPY cron.sh /
|
|
|
|
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|