This commit is contained in:
parent
98631e7f5b
commit
9450cc7546
@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
LICENSE
|
||||
README.md
|
||||
.drone.yml
|
||||
.drone.yml
|
||||
Dockerfile
|
@ -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
7
entrypoint.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user