From e5ca67f89079a019d9f59b28f650b3d91025107b Mon Sep 17 00:00:00 2001
From: Roman Hoellen <info@hoellen.eu>
Date: Tue, 26 Mar 2019 16:00:41 +0100
Subject: [PATCH] update matomo to 3.9.1

---
 matomo/Dockerfile | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/matomo/Dockerfile b/matomo/Dockerfile
index e5215af..ddd0480 100644
--- a/matomo/Dockerfile
+++ b/matomo/Dockerfile
@@ -1,6 +1,6 @@
 FROM hoellen/nginx-php:7.2
 
-ARG VERSION=3.7.0
+ARG VERSION=3.9.1
 ARG GPG_matthieu="814E 346F A01A 20DB B04B  6807 B5DB D592 5590 A237"
 
 ENV UID=991 GID=991 \
@@ -13,20 +13,13 @@ ENV UID=991 GID=991 \
     PHP_MAX_SPARE_SERVERS=6
 
 RUN BUILD_DEPS=" \
-    git \
     tar \
-    build-base \
-    autoconf \
-    geoip-dev \
-    libressl \
+    openssl \
     ca-certificates \
     gnupg" \
  && apk -U upgrade && apk add \
     ${BUILD_DEPS} \
-    geoip \
     tzdata \
- && pecl install geoip-1.1.1 \
- && echo 'extension=geoip.so' >> /php/conf.d/geoip.ini \
  && mkdir /matomo && cd /tmp \
  && MATOMO_TARBALL="matomo-${VERSION}.tar.gz" \
  && wget -q https://builds.matomo.org/${MATOMO_TARBALL} \
@@ -40,9 +33,7 @@ RUN BUILD_DEPS=" \
  && if [ "${FINGERPRINT}" != "${GPG_matthieu}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \
  && echo "All seems good, now unpacking ${MATOMO_TARBALL}..." \
  && tar xzf ${MATOMO_TARBALL} --strip 1 -C /matomo \
- && wget -q https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -P /usr/share/GeoIP/ \
- && gzip -d /usr/share/GeoIP/GeoLiteCity.dat.gz \
- && mv /usr/share/GeoIP/GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat \
+ && cd /matomo/misc && wget -qO- https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz | tar xz --strip 1 \
  && apk del ${BUILD_DEPS} php7-dev php7-pear \
  && rm -rf /var/cache/apk/* /tmp/* /root/.gnupg