优化docker

This commit is contained in:
david
2020-12-22 00:14:52 +08:00
parent 815156b252
commit 849370e26a
6 changed files with 19 additions and 14 deletions

7
docker/entrypoint.sh Normal file
View File

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