From 51254f0a0c07dac64a87acb90596113eb67f4a40 Mon Sep 17 00:00:00 2001 From: lz-wang Date: Sat, 3 Sep 2022 20:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=20Python=203.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- python3.10/Dockerfile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 89c433f..6fe6b5d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,6 +28,6 @@ steps: from_secret: docker_hub_token commands: - echo $USERNAME - - docker build . -t lzwang/python3.10:vps -f ./python3.10/Dockerfile + - docker build . -t lzwang/python3.10:nightly -f ./python3.10/Dockerfile - docker login -u $USERNAME -p $TOKEN - docker push lzwang/python3.10:nightly diff --git a/python3.10/Dockerfile b/python3.10/Dockerfile index ee2bfd7..1827802 100644 --- a/python3.10/Dockerfile +++ b/python3.10/Dockerfile @@ -16,6 +16,11 @@ WORKDIR /project # https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple +# upgrade pip +RUN pip install --no-cache-dir --upgrade pip \ + && rm -rf /root/.cache \ + && rm -rf /tmp/* + # setup timezone RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && date