Skip to content

Commit 12ade8b

Browse files
authored
fix: streamline Dockerfile by removing redundant mirror configuration… (#175)
fix: streamline Dockerfile by removing redundant mirror configurations and simplifying package installation
1 parent 924d977 commit 12ade8b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/images/backend/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
FROM maven:3-eclipse-temurin-8 AS datax-builder
22

3-
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
4-
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
5-
apt-get update && \
3+
RUN apt-get update && \
64
apt-get install -y git && \
75
git clone https://github.com/alibaba/DataX.git
86

@@ -23,9 +21,7 @@ RUN cd /opt/backend && \
2321

2422
FROM eclipse-temurin:21-jdk
2523

26-
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
27-
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
28-
apt-get update && \
24+
RUN apt-get update && \
2925
apt-get install -y vim wget curl nfs-common rsync python3 python3-pip python-is-python3 dos2unix && \
3026
apt-get clean && \
3127
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)