ldc-matomo/Dockerfile
2025-10-06 19:22:20 +02:00

11 lines
No EOL
327 B
Docker

FROM matomo:5.4.0-apache
RUN a2enmod rewrite
USER www-data
# 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
USER root