From b8d6100f589029b6b5e7b5dc75994c23c94d9917 Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Mon, 24 Sep 2018 15:08:33 +0530 Subject: [PATCH] Adding tail. --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4ec76aa..8c961dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,4 +32,8 @@ RUN wget -qO - --header="X-Papertrail-Token: "$papertrail_token https://papertra RUN crontab -l > /tmp/crontab;\ echo '* * * * * cd /root/tweet-toot; python3 /root/tweet-toot/run.py >> /tmp/tweet-toot.log' >> /tmp/crontab;\ - crontab /tmp/crontab \ No newline at end of file + crontab /tmp/crontab + +RUN touch /tmp/tweet-toot.log + +CMD cron && tail -f /tmp/tweet-toot.log \ No newline at end of file