docker: fix build error on installing cryptography

This commit is contained in:
Miao Wang 2021-05-24 15:12:17 +08:00
parent 836c5681bd
commit 8431deb7ff

View File

@ -3,9 +3,10 @@ MAINTAINER Justin Wong <yuzhi.wang@tuna.tsinghua.edu.cn>
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 awscli
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