matomo-mod/Dockerfile
baalajimaestro 961c67b164
Rework and use fpm
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2022-08-26 12:38:11 +05:30

12 lines
No EOL
508 B
Docker

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"]