|
|
|
|
@ -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
|
|
|
|
|
|