diff --git a/webkit/Dockerfile b/webkit/Dockerfile index 1cafc1c..8f3b1fe 100644 --- a/webkit/Dockerfile +++ b/webkit/Dockerfile @@ -5,6 +5,8 @@ FROM ubuntu:14.04 MAINTAINER kev +RUN echo "Asia/Shanghai" > /etc/timezone +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN apt-get update && apt-get install -y supervisor haproxy libfontconfig1 libfreetype6 monit nginx RUN mkdir -p /data/ /webkit/includes/ diff --git a/webkit/etc/monit/conf.d/cleanup.cfg b/webkit/etc/monit/conf.d/cleanup.cfg new file mode 100644 index 0000000..bfe051c --- /dev/null +++ b/webkit/etc/monit/conf.d/cleanup.cfg @@ -0,0 +1,2 @@ +check program cleanup with path "find /data -type f -cmin +60 -delete" + every 5 cycles