This commit is contained in:
z4yx 2020-05-31 10:26:27 +08:00
parent 6635f5c715
commit 8b6b4ec6a9
2 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ RUN apt-get update && \
apt-get install -y wget curl rsync lftp git jq python3-dev python3-pip yum-utils createrepo aria2 ack composer php-curl php-zip
RUN STATIC_DEPS=true pip3 install pyquery
RUN pip3 install requests[socks] pyyaml gsutil bandersnatch awscli
RUN pip3 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

View File

@ -1,4 +1,10 @@
FROM python:3.8-alpine
RUN apk add --update --no-cache --virtual .build-deps \
g++ \
python-dev \
libxml2 \
libxml2-dev && \
apk add libxslt-dev
RUN pip3 install bandersnatch
CMD /bin/bash