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.
This commit is contained in:
Felix Stupp
2019-09-06 18:03:48 +02:00
committed by Sabe Jones
parent f7dd46864a
commit f8ad31fbda
+1 -1
View File
@@ -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