feat: nginx with geoip2
Some checks failed
ci / docker (push) Failing after 7m26s

This commit is contained in:
Tine 2024-08-18 14:30:09 +02:00
parent b708ab3cdd
commit 43bba4fac9
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -1,7 +1,4 @@
ARG NGINX_VERSION=1.27.1
ARG GEOIP2_VERSION=3.4
# Build
FROM nginx:$NGINX_VERSION AS build
RUN mkdir -p /var/lib/GeoIP/
@ -16,6 +13,7 @@ RUN apt-get update \
wget \
git
ARG GEOIP2_VERSION=3.4
RUN cd /opt \
&& git clone --depth 1 -b $GEOIP2_VERSION --single-branch https://github.com/leev/ngx_http_geoip2_module.git \
&& wget -O - http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz | tar zxfv - \