From 603287b1bf70715c2b9783f6943c148b3948ff98 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Tue, 6 Apr 2021 21:11:33 +0200 Subject: [PATCH] Don't try to purge app-get cache data and clone with depth=1 in Docker for compose web --- ci/docker/compose-web/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/docker/compose-web/Dockerfile b/ci/docker/compose-web/Dockerfile index a69facfdb5..28778602d5 100644 --- a/ci/docker/compose-web/Dockerfile +++ b/ci/docker/compose-web/Dockerfile @@ -27,7 +27,7 @@ RUN chmod a+x ~/bin/repo RUN mkdir androidx-main WORKDIR androidx-main RUN ~/bin/repo init -u https://android.googlesource.com/platform/manifest \ - -b androidx-main --partial-clone --clone-filter=blob:limit=10M + -b androidx-main --depth=1 --partial-clone --clone-filter=blob:limit=10M RUN ~/bin/repo sync -c --no-tags --no-clone-bundle -j4 RUN mkdir -p /mnt/agent @@ -35,5 +35,6 @@ RUN ln -sf /androidx-main/tools/ /mnt/agent/tools RUN ln -sf /androidx-main/prebuilts/ /mnt/agent/prebuilts RUN ln -sf /androidx-main/external /mnt/agent/external +RUN rm -rf /androidx-main/frameworks/support RUN apt-get clean -RUN apt-get purge curl && rm -rf /var/lib/apt/lists/* /var/cache/apt/* +RUN apt-get purge wget