You've already forked DataMate
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:
@@ -1,8 +1,6 @@
|
|||||||
FROM maven:3-eclipse-temurin-8 AS datax-builder
|
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 && \
|
RUN apt-get update && \
|
||||||
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y git && \
|
apt-get install -y git && \
|
||||||
git clone https://github.com/alibaba/DataX.git
|
git clone https://github.com/alibaba/DataX.git
|
||||||
|
|
||||||
@@ -23,9 +21,7 @@ RUN cd /opt/backend && \
|
|||||||
|
|
||||||
FROM eclipse-temurin:21-jdk
|
FROM eclipse-temurin:21-jdk
|
||||||
|
|
||||||
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
|
RUN apt-get update && \
|
||||||
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y vim wget curl nfs-common rsync python3 python3-pip python-is-python3 dos2unix && \
|
apt-get install -y vim wget curl nfs-common rsync python3 python3-pip python-is-python3 dos2unix && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
Reference in New Issue
Block a user