diff --git a/apex/examples/docker/Dockerfile b/apex/examples/docker/Dockerfile index 37bed888cd..af6785380a 100644 --- a/apex/examples/docker/Dockerfile +++ b/apex/examples/docker/Dockerfile @@ -10,7 +10,7 @@ RUN pip uninstall -y apex || : RUN pip uninstall -y apex || : # SHA is something the user can touch to force recreation of this Docker layer, # and therefore force cloning of the latest version of Apex -RUN SHA=ToUcHMe git clone https://github.com/NVIDIA/apex.git +RUN SHA=ToUcHMe git clone --depth 1 https://github.com/NVIDIA/apex.git WORKDIR /tmp/unique_for_apex/apex RUN pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" . WORKDIR /workspace