diff --git a/scripts/images/backend/Dockerfile b/scripts/images/backend/Dockerfile index 8bfaff7..b06aad2 100644 --- a/scripts/images/backend/Dockerfile +++ b/scripts/images/backend/Dockerfile @@ -1,8 +1,6 @@ FROM maven:3-openjdk-8-slim AS datax-builder -RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \ - sed -i 's/security.debian.org/mirrors.aliyun.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 @@ -24,8 +22,7 @@ RUN cd /opt/backend && \ FROM openjdk:21-jdk-slim -RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources && \ - 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/apy/lists/* diff --git a/scripts/images/runtime/Dockerfile b/scripts/images/runtime/Dockerfile index 693c7e9..a9171e7 100644 --- a/scripts/images/runtime/Dockerfile +++ b/scripts/images/runtime/Dockerfile @@ -5,8 +5,7 @@ COPY runtime/ops /opt/runtime/datamate/ops ENV PYTHONPATH=/opt/runtime/datamate/ -RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources \ - && apt update \ +RUN apt update \ && apt install -y libgl1 libglib2.0-0 vim poppler-utils tesseract-ocr tesseract-ocr-chi-sim libmagic1t64 libreoffice\ && apt clean \ && rm -rf /var/lib/apt/lists/* @@ -15,8 +14,8 @@ WORKDIR /opt/runtime ENV HF_HUB_DISABLE_XET=1 -RUN pip install -e . -i https://mirrors.aliyun.com/pypi/simple/ \ - && pip install -r /opt/runtime/datamate/ops/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \ +RUN pip install -e . \ + && pip install -r /opt/runtime/datamate/ops/requirements.txt \ && pip cache purge RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime