Skip to content

Commit

Permalink
chore: replace rsync by volume
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jul 18, 2024
1 parent 68c8e04 commit ca2aab9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .docker/Dockerfile.php80
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN apt-get update \
libicu-dev \
libzip-dev \
procps \
rsync \
unzip \
# cron
busybox-static \
Expand Down Expand Up @@ -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" ]
Expand Down
3 changes: 2 additions & 1 deletion .docker/Dockerfile.php81
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN apt-get update \
libicu-dev \
libzip-dev \
procps \
rsync \
unzip \
# cron
busybox-static \
Expand Down Expand Up @@ -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" ]
Expand Down
3 changes: 2 additions & 1 deletion .docker/Dockerfile.php82
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN apt-get update \
libicu-dev \
libzip-dev \
procps \
rsync \
unzip \
# cron
busybox-static \
Expand Down Expand Up @@ -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" ]
Expand Down
4 changes: 1 addition & 3 deletions .docker/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca2aab9

Please sign in to comment.