feat(cron): add cron to container

cron is installed with supervisor managing the process

!1
This commit is contained in:
2023-07-16 10:49:24 +09:30
parent 5d1d0f7feb
commit e200574099
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,7 @@ RUN apt update; \
php7.4-bz2 \ php7.4-bz2 \
php7.4-redis \ php7.4-redis \
\ \
cron \
supervisor \ supervisor \
ca-certificates; \ ca-certificates; \
rm -rf /var/lib/apt/lists/*; \ rm -rf /var/lib/apt/lists/*; \

View File

@ -0,0 +1,8 @@
[program:cron]
startsecs=0
stopwaitsecs=55
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
command=/usr/sbin/cron -f