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