修改镜像
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
编码猿
2025-01-24 22:38:48 +08:00
parent 88e76c9e0f
commit 1a51730db6
3 changed files with 18 additions and 5 deletions

View File

@@ -7,7 +7,12 @@ COPY ./requirements.txt /requirements.txt
RUN sed -i s@deb.debian.org@mirrors.tuna.tsinghua.edu.cn@g /etc/apt/sources.list.d/debian.sources
# 解决python 库 cv2报错 libGL.so.1: cannot open shared object file: No such file or directory
RUN apt-get clean && apt-get update && apt-get install -y libgl1
RUN apt-get clean && apt-get update && apt-get install -y libgl1 git git-lfs
# 配置git账户和邮箱
RUN git config --global user.name "bmy" && git config --global user.email "2271608011@qq.com"
# 取消git对ssl证书的验证让 drone 可以顺利克隆代码
RUN git config --global http.sslVerify "false"
# 更换pip下载地址为阿里云镜像源
RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/