add cron config

This commit is contained in:
Nikolay Gorylenko
2015-08-02 12:04:10 +02:00
parent a4ce37f29a
commit 3a73a9be5c
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