add new DockerFile and docker-compose example

This commit is contained in:
hxsf
2020-07-24 13:36:33 +08:00
parent 6578397ee3
commit 6c06d9fb6a
4 changed files with 130 additions and 3 deletions

10
docker/entrypoint.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
DEFAULT_CRON="0 */1 * * *"
cron=${cron:-$DEFAULT_CRON}
set -e
echo "$cron /usr/local/bin/php /IYUU/iyuu.php" | crontab -
/usr/local/bin/php /IYUU/iyuu.php
/usr/sbin/crond -f