张 巡 1 anno fa
parent
commit
1250e2d6f4
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  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