FROM matomo:5.4.0-apache RUN a2enmod rewrite # Create .htaccess file with rewrite rules RUN echo 'RewriteEngine On' > /var/www/html/.htaccess && \ echo 'RewriteRule ^unicorn$ matomo.js [L]' >> /var/www/html/.htaccess && \ echo 'RewriteRule ^rainbow$ matomo.php [L]' >> /var/www/html/.htaccess