2025-10-10 12:21:20 +02:00
|
|
|
FROM matomo:5.5.0-apache
|
2025-10-06 19:04:27 +02:00
|
|
|
|
2025-10-06 19:36:24 +02:00
|
|
|
RUN a2enmod rewrite && \
|
|
|
|
|
apt-get update && apt-get install -y --no-install-recommends libcap2-bin && \
|
|
|
|
|
chown -R www-data:www-data /var/log/apache2 /var/www/html && \
|
|
|
|
|
setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2 && \
|
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2025-10-06 19:18:59 +02:00
|
|
|
|
|
|
|
|
USER www-data
|
2025-10-06 19:27:44 +02:00
|
|
|
|
|
|
|
|
RUN printf "RewriteEngine On\nRewriteRule ^unicorn$ matomo.js [L]\nRewriteRule ^rainbow$ matomo.php [L]\n" > /var/www/html/.htaccess
|