From 1690b4b9c05839756d694baf35a382089376c135 Mon Sep 17 00:00:00 2001 From: rom4nik <46846000+rom4nik@users.noreply.github.com> Date: Mon, 27 Sep 2021 07:17:13 +0200 Subject: [PATCH] Add cron-like runner --- Dockerfile | 2 +- src/runner.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/runner.sh diff --git a/Dockerfile b/Dockerfile index 57806e2..bb2266e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ COPY src /app USER 1000:1000 VOLUME ["/data"] -CMD ["/bin/bash", "/app/main.sh", "/data/config.txt"] \ No newline at end of file +CMD ["/bin/sh", "/app/runner.sh"] \ No newline at end of file diff --git a/src/runner.sh b/src/runner.sh new file mode 100644 index 0000000..99fdb10 --- /dev/null +++ b/src/runner.sh @@ -0,0 +1,6 @@ +#!/bin/sh +while : +do + bash /app/main.sh /data/config.txt + sleep $SLEEPTIME +done \ No newline at end of file