From f8ad31fbda3aab03d6d368e1f480dffa388ca89a Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 6 Sep 2019 18:03:48 +0200 Subject: [PATCH] Dockerfile: Modified git clone to only clone with depth 1 (#11350) So that the not needed git history will not be downloaded into the docker container. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 24eb782dbe..65f734e1a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN npm install -g gulp-cli mocha # Clone Habitica repo and install dependencies RUN mkdir -p /usr/src/habitrpg WORKDIR /usr/src/habitrpg -RUN git clone --branch release https://github.com/HabitRPG/habitica.git /usr/src/habitrpg +RUN git clone --branch release --depth 1 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg RUN npm install RUN gulp build:prod --force