Initial commit

This commit is contained in:
jimmy 2022-08-14 00:48:34 +12:00
parent 750c0c7531
commit 571efc61d7
2 changed files with 12 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM debian
RUN apt-get update && apt-get -y install cron
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

4
entrypoint.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
crontab -l ; echo "${SCHEDULE} ${COMMAND} > /proc/1/fd/1 2> /proc/1/fd/2" | crontab
cron -f