Merge pull request #853 from n0mer/1.1

add cron config
This commit is contained in:
James Brooks 2015-08-02 11:06:46 +01:00
commit 18db70b9cd
2 changed files with 6 additions and 1 deletions

View File

@ -30,4 +30,8 @@ RUN sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php5/fpm/php-fpm.co
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
View File

@ -0,0 +1 @@
* * * * * php /var/www/html/artisan schedule:run 1>> /dev/null 2>&1