Browse Source

Don't try to purge app-get cache data and clone with depth=1 in Docker for compose web

pull/566/head
Shagen Ogandzhanian 4 years ago
parent
commit
603287b1bf
  1. 5
      ci/docker/compose-web/Dockerfile

5
ci/docker/compose-web/Dockerfile

@ -27,7 +27,7 @@ RUN chmod a+x ~/bin/repo
RUN mkdir androidx-main RUN mkdir androidx-main
WORKDIR androidx-main WORKDIR androidx-main
RUN ~/bin/repo init -u https://android.googlesource.com/platform/manifest \ 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 ~/bin/repo sync -c --no-tags --no-clone-bundle -j4
RUN mkdir -p /mnt/agent 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/prebuilts/ /mnt/agent/prebuilts
RUN ln -sf /androidx-main/external /mnt/agent/external RUN ln -sf /androidx-main/external /mnt/agent/external
RUN rm -rf /androidx-main/frameworks/support
RUN apt-get clean RUN apt-get clean
RUN apt-get purge curl && rm -rf /var/lib/apt/lists/* /var/cache/apt/* RUN apt-get purge wget

Loading…
Cancel
Save