interval as argument

This commit is contained in:
2020-01-18 20:36:34 -06:00
parent 5a2ea413f7
commit e694754d1d

View File

@@ -5,7 +5,8 @@ RUN apk add --no-cache git openssh-client
ADD pull.sh entrypoint.sh /
RUN chmod +x pull.sh entrypoint.sh
RUN echo "*/2 * * * * /pull.sh" > crontab.txt
ARG INTERVAL=2
RUN echo "*/${INTERVAL} * * * * /pull.sh" > crontab.txt
RUN crontab crontab.txt
WORKDIR /repo