Skip to content

Commit 5b25d6b

Browse files
committed
update geoip from prior working image
1 parent 1527529 commit 5b25d6b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ RUN set -x \
115115
&& export NGX_BROTLI_STATIC_MODULE_ONLY=1 \
116116
&& cd /tmp \
117117
&& git clone https://github.com/nbs-system/naxsi.git \
118+
&& echo 'adding /usr/local/share/GeoIP/GeoIP.dat database' \
119+
&& wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz \
120+
&& wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz \
121+
&& gzip -d GeoIP.dat.gz \
122+
&& gzip -d GeoLiteCity.dat.gz \
123+
&& mkdir /usr/local/share/GeoIP/ \
124+
&& mv GeoIP.dat /usr/local/share/GeoIP/ \
125+
&& mv GeoLiteCity.dat /usr/local/share/GeoIP/ \
126+
&& chown -R www-data:www-data /usr/local/share/GeoIP/ \
118127
&& curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
119128
&& mkdir -p /usr/src \
120129
&& tar -zxC /usr/src -f nginx.tar.gz \

geoip/GeoIP.dat.gz

-1.18 MB
Binary file not shown.

geoip/GeoLiteCity.dat.gz

-3.55 MB
Binary file not shown.

0 commit comments

Comments
 (0)