From 12ade8bc7b4b44b594a5d9dcd5689c842afb6b1f Mon Sep 17 00:00:00 2001 From: hhhhsc701 <56435672+hhhhsc701@users.noreply.github.com> Date: Wed, 17 Dec 2025 16:34:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20streamline=20Dockerfile=20by=20removing?= =?UTF-8?q?=20redundant=20mirror=20configuration=E2=80=A6=20(#175)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: streamline Dockerfile by removing redundant mirror configurations and simplifying package installation --- scripts/images/backend/Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/images/backend/Dockerfile b/scripts/images/backend/Dockerfile index 5df63ad..968efab 100644 --- a/scripts/images/backend/Dockerfile +++ b/scripts/images/backend/Dockerfile @@ -1,8 +1,6 @@ FROM maven:3-eclipse-temurin-8 AS datax-builder -RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \ - sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \ - apt-get update && \ +RUN apt-get update && \ apt-get install -y git && \ git clone https://github.com/alibaba/DataX.git @@ -23,9 +21,7 @@ RUN cd /opt/backend && \ FROM eclipse-temurin:21-jdk -RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \ - sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \ - apt-get update && \ +RUN apt-get update && \ apt-get install -y vim wget curl nfs-common rsync python3 python3-pip python-is-python3 dos2unix && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*