Setup cron
This commit is contained in:
parent
c4788d0867
commit
e61317d318
@ -1,10 +1,16 @@
|
|||||||
FROM php:7.1-fpm-alpine
|
FROM php:7.1-fpm-alpine
|
||||||
|
|
||||||
# entrypoint.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN apk add --no-cache \
|
RUN set -ex; \
|
||||||
bash \
|
\
|
||||||
coreutils \
|
apk add --no-cache \
|
||||||
rsync
|
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
|
# install the PHP extensions we need
|
||||||
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
FROM php:7.1-fpm-alpine
|
FROM php:7.1-fpm-alpine
|
||||||
|
|
||||||
# entrypoint.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN apk add --no-cache \
|
RUN set -ex; \
|
||||||
bash \
|
\
|
||||||
coreutils \
|
apk add --no-cache \
|
||||||
rsync
|
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
|
# install the PHP extensions we need
|
||||||
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
FROM php:7.1-fpm-alpine
|
FROM php:7.1-fpm-alpine
|
||||||
|
|
||||||
# entrypoint.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN apk add --no-cache \
|
RUN set -ex; \
|
||||||
bash \
|
\
|
||||||
coreutils \
|
apk add --no-cache \
|
||||||
rsync
|
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
|
# install the PHP extensions we need
|
||||||
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
FROM php:7.1-%%VARIANT%%
|
FROM php:7.1-%%VARIANT%%
|
||||||
|
|
||||||
# entrypoint.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN apk add --no-cache \
|
RUN set -ex; \
|
||||||
bash \
|
\
|
||||||
coreutils \
|
apk add --no-cache \
|
||||||
rsync
|
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
|
# install the PHP extensions we need
|
||||||
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
# see https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
|
||||||
|
Loading…
Reference in New Issue
Block a user