自动化构建 Python 3.10
continuous-integration/drone/push Build is passing Details

main
lz-wang 2022-09-03 20:57:24 +08:00
parent 3abdbf05e2
commit 51254f0a0c
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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