From 65b348678339effdcbb6f9988df03a53a58d7bc8 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Fri, 4 Jun 2021 22:47:52 +0800 Subject: [PATCH] Speed Zulip source code clone process Specify the clone branch to "$ZULIP_GIT_REF" and clone depth to 1 here. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82e0ab18c6..077f08e823 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,9 @@ WORKDIR /home/zulip ARG ZULIP_GIT_URL=https://github.com/zulip/zulip.git ARG ZULIP_GIT_REF=4.3 -RUN git clone "$ZULIP_GIT_URL" && \ +RUN git clone --depth 1 --branch "$ZULIP_GIT_REF" "$ZULIP_GIT_URL" && \ cd zulip && \ - git checkout -b current "$ZULIP_GIT_REF" + git checkout -b current WORKDIR /home/zulip/zulip