FROM debian:bullseye MAINTAINER Justin Wong RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list RUN sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list RUN apt-get update && \ apt-get install -y wget curl rsync lftp git jq python3-dev python3-pip dnf createrepo-c aria2 ack composer php-curl php-zip libnss-unknown COPY dnf-plugins-core_4.0.21-0\~unreleased_all.deb / RUN dpkg -i /dnf-plugins-core_4.0.21-0\~unreleased_all.deb RUN pip3 install --upgrade pip RUN STATIC_DEPS=true python3 -m pip install pyquery RUN python3 -m pip install requests[socks] pyyaml gsutil awscli 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 0755 /usr/local/bin/aosp-repo RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && apt-get install -y locales -qq && locale-gen ENV LANG=en_US.UTF-8 ENV LANGUAGE=en_US.UTF-8 ENV LC_ALL=en_US.UTF-8 ENV HOME=/tmp CMD /bin/bash