Преглед изворни кода

Merge branch 'dev_sgsc_wxm' of CRBC-MaaS-Platform-Project/LQAgentPlatform into dev

WangXuMing пре 2 недеља
родитељ
комит
32472c0bc4
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -1,5 +1,9 @@
 FROM python:3.12-slim
 
+# 替换为阿里云 apt 源(解决下载失败)
+RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list && \
+    sed -i 's|security.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list
+
 # 安装 OpenCV 系统依赖及 LibreOffice(docx/doc 转 PDF)
 RUN apt-get update && apt-get install -y \
     # OpenCV 核心依赖