File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 11FROM maven:3-openjdk-8-slim AS datax-builder
22
3- RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
4- sed -i 's/security.debian.org/mirrors.aliyun.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
@@ -24,8 +22,7 @@ RUN cd /opt/backend && \
2422
2523FROM openjdk:21-jdk-slim
2624
27- RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources && \
28- apt-get update && \
25+ RUN apt-get update && \
2926 apt-get install -y vim wget curl nfs-common rsync python3 python3-pip python-is-python3 dos2unix && \
3027 apt-get clean && \
3128 rm -rf /var/lib/apy/lists/*
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ COPY runtime/ops /opt/runtime/datamate/ops
55
66ENV PYTHONPATH=/opt/runtime/datamate/
77
8- RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources \
9- && apt update \
8+ RUN apt update \
109 && apt install -y libgl1 libglib2.0-0 vim poppler-utils tesseract-ocr tesseract-ocr-chi-sim libmagic1t64 libreoffice\
1110 && apt clean \
1211 && rm -rf /var/lib/apt/lists/*
@@ -15,8 +14,8 @@ WORKDIR /opt/runtime
1514
1615ENV HF_HUB_DISABLE_XET=1
1716
18- RUN pip install -e . -i https://mirrors.aliyun.com/pypi/simple/ \
19- && pip install -r /opt/runtime/datamate/ops/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \
17+ RUN pip install -e . \
18+ && pip install -r /opt/runtime/datamate/ops/requirements.txt \
2019 && pip cache purge
2120
2221RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
You can’t perform that action at this time.
0 commit comments