From 8431deb7ff69a43ed07b7918c1e62747e86173e3 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Mon, 24 May 2021 15:12:17 +0800 Subject: [PATCH] docker: fix build error on installing cryptography --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0d567c3..1a277af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ MAINTAINER Justin Wong 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