From 571efc61d70af955fc75c47b82127c36e37527f9 Mon Sep 17 00:00:00 2001 From: jimmy Date: Sun, 14 Aug 2022 00:48:34 +1200 Subject: [PATCH] Initial commit --- Dockerfile | 8 ++++++++ entrypoint.sh | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 Dockerfile create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b7b0a3e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM debian + +RUN apt-get update && apt-get -y install cron + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT [ "/entrypoint.sh" ] + diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..9fed111 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +crontab -l ; echo "${SCHEDULE} ${COMMAND} > /proc/1/fd/1 2> /proc/1/fd/2" | crontab +cron -f \ No newline at end of file