Use cron to the keep the container alive

This commit is contained in:
Anthony Mineo 2020-03-15 14:47:48 -04:00
parent e596b0ca7c
commit 15d89ae5e1
3 changed files with 4 additions and 3 deletions

View file

@ -30,7 +30,7 @@ RUN apk update && apk add --no-cache wget tzdata
ENV TZ=America/New_York
#Set cron schedule (every day at 9:30am est)
RUN crontab -l -u root | echo "30 9 * * * sh -c \"/app/start.sh\"" | crontab -u root -
RUN echo '30 9 * * * /app/start.sh' > /etc/crontabs/root
WORKDIR /app