Explorar el Código

切换阿里云的镜像

xueyiming hace 2 días
padre
commit
9da4bb94f2
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -7,7 +7,9 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
     PYTHONUNBUFFERED=1
 
 # 安装编译工具链(某些依赖如 pyfim 构建 wheel 需要 gcc)
-RUN apt-get update && \
+RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.aliyun.com@g' /etc/apt/sources.list && \
+    sed -i 's@//.*security.ubuntu.com@//mirrors.aliyun.com@g' /etc/apt/sources.list && \
+    apt-get update && \
     apt-get install -y --no-install-recommends gcc g++ libc6-dev && \
     rm -rf /var/lib/apt/lists/*