FROM openshift/base-centos7

MAINTAINER Brian Holsen <BrianHolsen@outlook.com>

#Install package for crontab
RUN yum install -y cronie

USER root

#add task file
ADD task.txt /tmp/task.txt

RUN crontab /tmp/task.txt

RUN touch /var/mail/root

RUN chown root:mail /var/mail/root

RUN chmod 600 /var/mail/root

CMD [ "crond", "-x", "sch" ]
