matomo-mod/Dockerfile

12 lines
508 B
Text
Raw Normal View History

FROM matomo:fpm-alpine
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
COPY supervisord.conf /
COPY cron.sh /
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]