自动化构建 Python 3.10
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3abdbf05e2
commit
51254f0a0c
|
@ -28,6 +28,6 @@ steps:
|
||||||
from_secret: docker_hub_token
|
from_secret: docker_hub_token
|
||||||
commands:
|
commands:
|
||||||
- echo $USERNAME
|
- 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 login -u $USERNAME -p $TOKEN
|
||||||
- docker push lzwang/python3.10:nightly
|
- docker push lzwang/python3.10:nightly
|
||||||
|
|
|
@ -16,6 +16,11 @@ WORKDIR /project
|
||||||
# https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
|
# https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
|
||||||
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
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
|
# setup timezone
|
||||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||||
&& date
|
&& date
|
||||||
|
|
Loading…
Reference in New Issue