diff --git a/Dockerfile b/Dockerfile index d1b3b41..ea1c2b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,7 @@ VOLUME /data RUN apk add --no-cache git bash openssh parallel openssh-keygen vim shadow RUN useradd --uid 10000 -ms /bin/bash executor -RUN chown executor:executor /data -RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/root +ADD crontab /etc/crontabs/executor RUN apk del shadow ADD dockerbin/* checker/* src/* /usr/local/bin/ ADD executor-conf /etc/init.d diff --git a/crontab b/crontab new file mode 100644 index 0000000..e7f011c --- /dev/null +++ b/crontab @@ -0,0 +1,3 @@ +# executor crontab +* * * * * /usr/local/bin/cron-command > /home/executor/cron.log +0 0 * * * mv /home/executor/cron.log /home/executor/cron.old