moved to supercronic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jblu 2023-06-25 23:55:56 -05:00
parent 98631e7f5b
commit 9450cc7546
3 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,5 @@
.gitignore
LICENSE
README.md
.drone.yml
.drone.yml
Dockerfile

View File

@ -1,2 +1,5 @@
FROM alpine:latest
ENTRYPOINT sleep infinity
COPY . opt
RUN apk add --no-cache supercronic
RUN chmod +x /opt/entrypoint.sh
CMD ["/opt/entrypoint.sh"]

7
entrypoint.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
CRON_CONFIG_FILE="/opt/crontab"
echo "${CRON} echo Come in the water is fine. >/dev/null" > $CRON_CONFIG_FILE
exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE