fix: streamline Dockerfile by removing redundant mirror configuration… (#175)

fix: streamline Dockerfile by removing redundant mirror configurations and simplifying package installation
This commit is contained in:
hhhhsc701
2025-12-17 16:34:41 +08:00
committed by GitHub
parent 924d977d6f
commit 12ade8bc7b

View File

@@ -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/*