Commit 687a0c80 by root

rc

parent 3962b35f
......@@ -5,13 +5,17 @@ MAINTAINER Brian Holsen <BrianHolsen@outlook.com>
#Install package for crontab
RUN yum install -y cronie
USER 1001
USER root
#add task file
ADD task.txt /tmp/task.txt
RUN crontab /tmp/task.txt
EXPOSE 80
RUN touch /var/mail/root
CMD [ "/usr/bin/ping", "localhost", "-i", "3" ]
RUN chown root:mail /var/mail/root
RUN chmod 600 /var/mail/root
CMD [ "crond", "-x", "sch" ]
*/5 * * * * /usr/bin/curl http://wh.okayapps.com/api/siteviewcount/insert_stat.html
* * * * * /usr/bin/curl http://wh.okayapps.com/yulong.html
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment