0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-17 08:34:48 +02:00

Add NEXTCLOUD_BASE_DIR option

Signed-off-by: pierre <pierre.m@nikolov.fr>
This commit is contained in:
pierre 2019-03-14 17:26:16 +01:00
parent 06d6ed3b87
commit e92fdf68a1
6 changed files with 72 additions and 36 deletions

View file

@ -1,6 +1,8 @@
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
FROM php:7.2-apache-stretch
ENV NEXTCLOUD_BASE_DIR /var/www/html
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
\
@ -13,7 +15,7 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/15 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
echo '*/15 * * * * php -f ${NEXTCLOUD_BASE_DIR}/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
@ -99,7 +101,7 @@ RUN { \
chown -R www-data:root /var/www; \
chmod -R g=u /var/www
VOLUME /var/www/html
VOLUME ${NEXTCLOUD_BASE_DIR}
RUN a2enmod rewrite remoteip ;\
{\