diff options
author | Álvaro Brey <alvaro.brey@nextcloud.com> | 2022-11-11 11:30:55 +0300 |
---|---|---|
committer | Álvaro Brey <alvaro.brey@nextcloud.com> | 2022-11-11 11:30:55 +0300 |
commit | 7a4a532e7d2df6e3e6b2771af054ff1b07393cc7 (patch) | |
tree | e7aa0875c3e5e5cb34a9dd1091841b1e56280a5e | |
parent | a83b06b15c4fd861f5716735f5c2e6fd894de057 (diff) |
shallow-server: Also shallow-clone the thirdparty submoduleshallow-third-party
Makes the image a tiny bit smaller and the build and execution a tiny bit faster
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
-rw-r--r-- | shallow-server/Dockerfile | 2 | ||||
-rwxr-xr-x | shallow-server/initnc.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shallow-server/Dockerfile b/shallow-server/Dockerfile index 392603c..5ef4d28 100644 --- a/shallow-server/Dockerfile +++ b/shallow-server/Dockerfile @@ -25,7 +25,7 @@ RUN rm -rf /var/www/html RUN mkdir -p /var/www/html RUN git clone --depth 1 https://github.com/nextcloud/server.git . -RUN git submodule update --init +RUN git submodule update --init --depth 1 RUN chown -R www-data:www-data . RUN chsh -s /bin/bash www-data diff --git a/shallow-server/initnc.sh b/shallow-server/initnc.sh index b984c8c..5a3ab39 100755 --- a/shallow-server/initnc.sh +++ b/shallow-server/initnc.sh @@ -9,7 +9,7 @@ cd /var/www/html/ su www-data -c " git fetch --force --depth 1 origin $BRANCH:refs/remotes/origin/$BRANCH git checkout origin/$BRANCH -B $BRANCH -git submodule update +git submodule update --depth 1 # Creating data mkdir -p /var/www/html/data |