11 lines
No EOL
441 B
Docker
11 lines
No EOL
441 B
Docker
FROM matomo:5.5.0-apache
|
|
|
|
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/*
|
|
|
|
USER www-data
|
|
|
|
RUN printf "RewriteEngine On\nRewriteRule ^unicorn$ matomo.js [L]\nRewriteRule ^rainbow$ matomo.php [L]\n" > /var/www/html/.htaccess |