From 7b193e3392f829c3bf476c73a94d906af0030c24 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Mon, 16 Jan 2023 12:29:30 +0530 Subject: [PATCH] fix: remove git remotes for erpnext (#1041) fix github rate limit error on bench install-app --- images/production/Containerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/production/Containerfile b/images/production/Containerfile index 853f12ff..a3ba9167 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -102,7 +102,8 @@ RUN bench init \ cd /home/frappe/frappe-bench && \ bench get-app --branch=${ERPNEXT_BRANCH} --resolve-deps erpnext ${ERPNEXT_REPO} && \ echo "$(jq 'del(.db_host, .redis_cache, .redis_queue, .redis_socketio)' sites/common_site_config.json)" \ - > sites/common_site_config.json + > sites/common_site_config.json && \ + find apps -name .git -type d -prune | xargs -i git --git-dir {} remote rm upstream FROM base as erpnext