diff options
author | Tilo Spannagel <development@tilosp.de> | 2018-02-27 18:44:59 +0100 |
---|---|---|
committer | Tilo Spannagel <development@tilosp.de> | 2018-02-27 19:01:59 +0100 |
commit | e61317d3181fb0ff5bcb59f454f1563a9b9b8990 (patch) | |
tree | d3bb8b3d94041397b904f30dd63062f7c0506273 /Dockerfile-alpine.template | |
parent | c4788d0867e002fd7e02d78a4b13e21cf74c8893 (diff) |
Setup cron
Diffstat (limited to 'Dockerfile-alpine.template')
-rw-r--r-- | Dockerfile-alpine.template | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 5097d9af..8fecc85f 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -1,10 +1,16 @@ FROM php:7.1-%%VARIANT%% -# entrypoint.sh dependencies -RUN apk add --no-cache \ - bash \ - coreutils \ - rsync +# entrypoint.sh and cron.sh dependencies +RUN set -ex; \ + \ + apk add --no-cache \ + bash \ + coreutils \ + rsync \ + ; \ + \ + mkdir -p /var/spool/cron/crontabs; \ + echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # install the PHP extensions we need # see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html |