mirror of
https://github.com/nextcloud/docker.git
synced 2025-02-14 23:13:43 +01:00
Setup cron
This commit is contained in:
parent
c4788d0867
commit
e61317d318
4 changed files with 44 additions and 20 deletions
|
@ -1,10 +1,16 @@
|
|||
FROM php:7.1-fpm-alpine
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,10 +1,16 @@
|
|||
FROM php:7.1-fpm-alpine
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,10 +1,16 @@
|
|||
FROM php:7.1-fpm-alpine
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue