From e68497c599fe44a9e0ee6f536a284cfc278cf9a5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Feb 2020 11:05:59 +0800 Subject: [PATCH] add composer-mirror to docker --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 045df2d..e72af19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ RUN apt-get update && \ RUN STATIC_DEPS=true pip3 install pyquery RUN pip3 install requests pyyaml bandersnatch==3.6.0 +RUN cd /usr/local && git clone --depth 1 https://github.com/tuna/composer-mirror.git && cd composer-mirror && composer i +COPY composer-mirror.config.php /usr/local/composer-mirror/config.php + RUN mkdir -p /home/tunasync-scripts ADD https://storage.googleapis.com/git-repo-downloads/repo /usr/local/bin/aosp-repo RUN chmod a+x /usr/local/bin/aosp-repo