All checks were successful
/ build-docker-image (push) Successful in 10s
26 lines
753 B
Docker
26 lines
753 B
Docker
#tag nginx-geoip
|
|
FROM nginx
|
|
|
|
|
|
#RUN apt update -y && apt install -y logrotate && apt install -y cron
|
|
|
|
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
|
|
|
|
|
|
#CMD service cron start && while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off";
|
|
CMD service while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off"; |