add cron config
This commit is contained in:
@@ -30,4 +30,8 @@ RUN sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php5/fpm/php-fpm.co
|
|||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD ["/sbin/entrypoint.sh"]
|
ADD crontab /etc/cron.d/artisan-schedule
|
||||||
|
RUN chmod 0644 /etc/cron.d/artisan-schedule
|
||||||
|
RUN touch /var/log/cron.log
|
||||||
|
|
||||||
|
CMD ["/sbin/entrypoint.sh"]
|
||||||
|
|||||||
1
docker/crontab
Normal file
1
docker/crontab
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* * * * * php /var/www/html/artisan schedule:run 1>> /dev/null 2>&1
|
||||||
Reference in New Issue
Block a user