From 749c59bfebd50df11e05e5273461021fa9d1de83 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 25 Jan 2022 12:07:09 +0300 Subject: [PATCH] Use shallow clone in docker (#646) Signed-off-by: Anatoli Babenia --- NOTICE | 1 + docker/docker-entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NOTICE b/NOTICE index 143e8ad331..f2d42d1552 100644 --- a/NOTICE +++ b/NOTICE @@ -88,6 +88,7 @@ Copyright (c) 2021 Andrej Nisin Copyright (c) 2021 Marvin Bechtold Copyright (c) 2021 Timm Pankratz Copyright (c) 2021 Lavinia Stiliadou +Copyright (c) 2022 Anatoli Babenia == Third-party Content diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 4409ac7632..7c15e5ae09 100644 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -13,7 +13,7 @@ if [ -d "${WINERY_REPOSITORY_PATH}" ] && [ "$(ls -A ${WINERY_REPOSITORY_PATH})" echo "Repository at ${WINERY_REPOSITORY_PATH} is already initialized!"; else if [ ! "x${WINERY_REPOSITORY_URL}" = "x" ]; then - git clone ${WINERY_REPOSITORY_URL} ${WINERY_REPOSITORY_PATH}; + git clone --depth 1 ${WINERY_REPOSITORY_URL} ${WINERY_REPOSITORY_PATH}; else git init ${WINERY_REPOSITORY_PATH}; fi