张 巡 1 年之前
父節點
當前提交
1250e2d6f4
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Dockerfile.tx

+ 3 - 2
Dockerfile.tx

@@ -18,8 +18,9 @@ RUN cd /src && chmod a+x  ./bdist_wheel.sh && ./bdist_wheel.sh
 # FROM ubuntu:18.04 AS builder
 FROM openjdk:8-jre-slim as builder
 
-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
+RUN sed -i "s@http://\(deb\|security\).debian.org@https://mirrors.aliyun.com@g" /etc/apt/sources.list
+#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
 
 ENV LANG=zh_CN.UTF-8 LANGUAGE=zh_CN:zh LC_ALL=zh_CN.UTF-8 DEBIAN_FRONTEND=noninteractive