Skip to content

Commit

Permalink
Add cron-like runner
Browse files Browse the repository at this point in the history
  • Loading branch information
rom4nik committed Sep 27, 2021
1 parent e72a187 commit 1690b4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ COPY src /app
USER 1000:1000
VOLUME ["/data"]

CMD ["/bin/bash", "/app/main.sh", "/data/config.txt"]
CMD ["/bin/sh", "/app/runner.sh"]
6 changes: 6 additions & 0 deletions src/runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
while :
do
bash /app/main.sh /data/config.txt
sleep $SLEEPTIME
done

0 comments on commit 1690b4b

Please sign in to comment.