Setup cron
This commit is contained in:
parent
c4788d0867
commit
e61317d318
@ -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 New Issue
Block a user