Accelerate build step by making a shallow git clone

This commit is contained in:
Régis Behmo 2018-02-07 19:37:54 +01:00
parent bba21ac592
commit 9546be53e9
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ VOLUME /openedx/data
WORKDIR /openedx/edx-platform
## Checkout edx-platform code
RUN git clone https://github.com/edx/edx-platform.git . && \
git checkout open-release/ginkgo.master
RUN git clone https://github.com/edx/edx-platform.git --branch open-release/ginkgo.master --depth 1 .
# Install python requirements
RUN pip install -r requirements/edx/pre.txt