mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
piwik: patch geoip.inc
This commit is contained in:
parent
2f98f06f6f
commit
7f464329c3
@ -39,10 +39,16 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
|
||||
&& apk del git autoconf build-base php7-dev php7-pear geoip-dev \
|
||||
&& rm -rf /var/cache/apk/* /tmp/*
|
||||
|
||||
RUN wget -qO- http://builds.piwik.org/piwik-$VERSION.tar.gz | tar xz \
|
||||
RUN apk -U add openssl ca-certificates \
|
||||
&& wget -qO- http://builds.piwik.org/piwik-$VERSION.tar.gz | tar xz \
|
||||
&& wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -P /piwik/misc \
|
||||
&& gzip -d /piwik/misc/GeoLiteCity.dat.gz \
|
||||
&& mv /piwik/misc/GeoLiteCity.dat /piwik/misc/GeoIPCity.dat
|
||||
&& mv /piwik/misc/GeoLiteCity.dat /piwik/misc/GeoIPCity.dat \
|
||||
&& cd /piwik/libs/MaxMindGeoIP && rm geoip.inc \
|
||||
&& wget -q https://raw.githubusercontent.com/cerlestes/piwik/cerlestes-patch-1/libs/MaxMindGeoIP/geoip.inc \
|
||||
&& chmod +x geoip.inc \
|
||||
&& apk del openssl ca-certificates \
|
||||
&& rm -f /var/cache/apk/*
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user