diff --git a/docker/master-java/Dockerfile b/docker/master-java/Dockerfile index fdad58ddf..f0792449a 100644 --- a/docker/master-java/Dockerfile +++ b/docker/master-java/Dockerfile @@ -37,7 +37,7 @@ RUN opam init --reinit --bare --disable-sandboxing # Download the latest Infer master RUN cd / && \ - git clone https://github.com/facebook/infer/ + git clone --depth 1 https://github.com/facebook/infer/ # Build opam deps first, then infer. This way if any step fails we # don't lose the significant amount of work done in the previous diff --git a/docker/master/Dockerfile b/docker/master/Dockerfile index b441e2782..ce879afff 100644 --- a/docker/master/Dockerfile +++ b/docker/master/Dockerfile @@ -41,7 +41,7 @@ RUN opam init --reinit --bare --disable-sandboxing --yes --auto-setup # Download the latest Infer master RUN cd / && \ - git clone --recurse-submodules https://github.com/facebook/infer/ + git clone --depth 1 --recurse-submodules https://github.com/facebook/infer/ # Build opam deps first, then clang, then infer. This way if any step # fails we don't lose the significant amount of work done in the