19 lines
476 B
Docker
19 lines
476 B
Docker
#tag nginx-geoip
|
|
FROM nginx
|
|
|
|
COPY 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
|
|
|
|
RUN mkdir /etc/nginx/conf.d/streams
|
|
RUN mkdir /etc/nginx/conf.d/sites |