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