Enable cron

This commit is contained in:
Václav Valíček 2018-10-28 15:33:28 +01:00
parent 073c12c502
commit d4ea73f9b2
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938

View File

@ -6,7 +6,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/executor
RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/executor
RUN touch /var/run/cloner.pid
RUN chown executor:executor /var/run/cloner.pid
RUN apk del shadow