diff --git a/.docker/Dockerfile.php80 b/.docker/Dockerfile.php80 index 5c92e43..042214e 100644 --- a/.docker/Dockerfile.php80 +++ b/.docker/Dockerfile.php80 @@ -7,7 +7,6 @@ RUN apt-get update \ libicu-dev \ libzip-dev \ procps \ - rsync \ unzip \ # cron busybox-static \ @@ -60,6 +59,8 @@ COPY config/php/* /usr/local/etc/php/conf.d/ COPY scripts/* /var/www/scripts/ COPY bin/* /usr/local/bin/ +VOLUME /var/www/html + WORKDIR /var/www/html ENTRYPOINT [ "bash", "/var/www/scripts/entrypoint.sh" ] diff --git a/.docker/Dockerfile.php81 b/.docker/Dockerfile.php81 index a54c59e..882b541 100644 --- a/.docker/Dockerfile.php81 +++ b/.docker/Dockerfile.php81 @@ -7,7 +7,6 @@ RUN apt-get update \ libicu-dev \ libzip-dev \ procps \ - rsync \ unzip \ # cron busybox-static \ @@ -60,6 +59,8 @@ COPY config/php/* /usr/local/etc/php/conf.d/ COPY scripts/* /var/www/scripts/ COPY bin/* /usr/local/bin/ +VOLUME /var/www/html + WORKDIR /var/www/html ENTRYPOINT [ "bash", "/var/www/scripts/entrypoint.sh" ] diff --git a/.docker/Dockerfile.php82 b/.docker/Dockerfile.php82 index ce98bc3..03fce48 100644 --- a/.docker/Dockerfile.php82 +++ b/.docker/Dockerfile.php82 @@ -7,7 +7,6 @@ RUN apt-get update \ libicu-dev \ libzip-dev \ procps \ - rsync \ unzip \ # cron busybox-static \ @@ -60,6 +59,8 @@ COPY config/php/* /usr/local/etc/php/conf.d/ COPY scripts/* /var/www/scripts/ COPY bin/* /usr/local/bin/ +VOLUME /var/www/html + WORKDIR /var/www/html ENTRYPOINT [ "bash", "/var/www/scripts/entrypoint.sh" ] diff --git a/.docker/scripts/entrypoint.sh b/.docker/scripts/entrypoint.sh index 573eaf9..d0ad465 100644 --- a/.docker/scripts/entrypoint.sh +++ b/.docker/scripts/entrypoint.sh @@ -6,9 +6,7 @@ groupmod --non-unique --gid "${HOST_GID}" www-data # Clone Nextcloud repository, if needed if [ ! -d ".git" ]; then - git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /tmp/nextcloud - rsync -r /tmp/nextcloud/ . - rm -rf /tmp/nextcloud + git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /var/www/html mkdir data mkdir apps-writable mkdir apps-extra