Skip to content

Commit 46a996f

Browse files
authored
Merge pull request #74 from LibreCodeCoop/chore/replace-rsync-by-volume
chore: replace rsync by volume
2 parents 68c8e04 + ca2aab9 commit 46a996f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.docker/Dockerfile.php80

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ RUN apt-get update \
77
libicu-dev \
88
libzip-dev \
99
procps \
10-
rsync \
1110
unzip \
1211
# cron
1312
busybox-static \
@@ -60,6 +59,8 @@ COPY config/php/* /usr/local/etc/php/conf.d/
6059
COPY scripts/* /var/www/scripts/
6160
COPY bin/* /usr/local/bin/
6261

62+
VOLUME /var/www/html
63+
6364
WORKDIR /var/www/html
6465

6566
ENTRYPOINT [ "bash", "/var/www/scripts/entrypoint.sh" ]

.docker/Dockerfile.php81

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ RUN apt-get update \
77
libicu-dev \
88
libzip-dev \
99
procps \
10-
rsync \
1110
unzip \
1211
# cron
1312
busybox-static \
@@ -60,6 +59,8 @@ COPY config/php/* /usr/local/etc/php/conf.d/
6059
COPY scripts/* /var/www/scripts/
6160
COPY bin/* /usr/local/bin/
6261

62+
VOLUME /var/www/html
63+
6364
WORKDIR /var/www/html
6465

6566
ENTRYPOINT [ "bash", "/var/www/scripts/entrypoint.sh" ]

.docker/Dockerfile.php82

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ RUN apt-get update \
77
libicu-dev \
88
libzip-dev \
99
procps \
10-
rsync \
1110
unzip \
1211
# cron
1312
busybox-static \
@@ -60,6 +59,8 @@ COPY config/php/* /usr/local/etc/php/conf.d/
6059
COPY scripts/* /var/www/scripts/
6160
COPY bin/* /usr/local/bin/
6261

62+
VOLUME /var/www/html
63+
6364
WORKDIR /var/www/html
6465

6566
ENTRYPOINT [ "bash", "/var/www/scripts/entrypoint.sh" ]

.docker/scripts/entrypoint.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ groupmod --non-unique --gid "${HOST_GID}" www-data
66

77
# Clone Nextcloud repository, if needed
88
if [ ! -d ".git" ]; then
9-
git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /tmp/nextcloud
10-
rsync -r /tmp/nextcloud/ .
11-
rm -rf /tmp/nextcloud
9+
git clone --progress --single-branch --depth 1 --branch "${VERSION_NEXTCLOUD}" --recurse-submodules -j 4 https://github.com/nextcloud/server /var/www/html
1210
mkdir data
1311
mkdir apps-writable
1412
mkdir apps-extra

0 commit comments

Comments
 (0)