Enable socks:// support of requests

This commit is contained in:
Yuxiang Zhang 2020-03-03 11:21:29 +08:00 committed by GitHub
parent 30cca3af73
commit 47f8d4f0f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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