You've already forked DataMate
refactor: simplify Dockerfile by removing redundant mirror configurations and cleaning up package installation commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user