From 87767dbda99b3259d44ec2c02dceb3a59bb2ca3c Mon Sep 17 00:00:00 2001 From: Ferri Sutanto Date: Wed, 31 Jan 2024 16:55:48 +0700 Subject: [PATCH] feat: git clone depth limit in docker --- containerapp/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containerapp/Dockerfile b/containerapp/Dockerfile index 876a9a10..09ebad11 100644 --- a/containerapp/Dockerfile +++ b/containerapp/Dockerfile @@ -23,7 +23,7 @@ RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesourc sudo apt-get install nodejs -y # Install gpt-crawler -RUN cd /home && git clone https://github.com/builderio/gpt-crawler && cd gpt-crawler && \ +RUN cd /home && git clone --depth=1 https://github.com/builderio/gpt-crawler && cd gpt-crawler && \ npm i && \ npx playwright install && \ npx playwright install-deps @@ -32,4 +32,4 @@ RUN cd /home && git clone https://github.com/builderio/gpt-crawler && cd gpt-cra RUN cd /home && mkdir data -WORKDIR /home \ No newline at end of file +WORKDIR /home