16 lines
413 B
Docker
16 lines
413 B
Docker
#tag nginx-geoip
|
|
FROM nginx
|
|
|
|
COPY /docker/nginx-geoip.conf /etc/nginx/nginx.conf
|
|
|
|
|
|
|
|
RUN curl -O https://dl.miyuru.lk/geoip/dbip/country/dbip.dat.gz
|
|
RUN mv dbip.dat.gz country.dat.gz
|
|
RUN gzip -d country.dat.gz
|
|
RUN cp country.dat /etc/nginx/dbip-country.dat
|
|
|
|
RUN curl -O https://dl.miyuru.lk/geoip/dbip/city/dbip.dat.gz
|
|
RUN mv dbip.dat.gz city.dat.gz
|
|
RUN gzip -d city.dat.gz
|
|
RUN cp city.dat /etc/nginx/dbip-city.dat |