changed default log to json, added cmd
All checks were successful
/ build-docker-image (push) Successful in 10s
All checks were successful
/ build-docker-image (push) Successful in 10s
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#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
|
||||
|
||||
|
||||
@@ -16,4 +19,8 @@ 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
|
||||
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";
|
||||
Reference in New Issue
Block a user