ldc-matomo/Dockerfile
2025-10-06 19:27:44 +02:00

10 lines
No EOL
304 B
Docker

FROM matomo:5.4.0-apache
RUN a2enmod rewrite
RUN chown -R www-data:www-data /var/log/apache2 && \
setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2
USER www-data
RUN printf "RewriteEngine On\nRewriteRule ^unicorn$ matomo.js [L]\nRewriteRule ^rainbow$ matomo.php [L]\n" > /var/www/html/.htaccess