From 185d10886e0b8c7e4f5c93229e8651890c815bfd Mon Sep 17 00:00:00 2001 From: kendokan <3757437+kendokan@users.noreply.github.com> Date: Tue, 24 Oct 2017 13:36:04 -0700 Subject: [PATCH] Cron needs a blank line at the end of the cronfile The cron job wouldn't fire as scheduled until I added a blank line to the end. --- .examples/dockerfiles/cron/fpm/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.examples/dockerfiles/cron/fpm/Dockerfile b/.examples/dockerfiles/cron/fpm/Dockerfile index b93eed1b..3ffc2860 100644 --- a/.examples/dockerfiles/cron/fpm/Dockerfile +++ b/.examples/dockerfiles/cron/fpm/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN mkdir /var/log/supervisord /var/run/supervisord && \ - echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\""| crontab - + printf "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\"\n"| crontab - COPY supervisord.conf /etc/supervisor/supervisord.conf