You've already forked DataMate
mirror
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
FROM ghcr.io/astral-sh/uv:python3.11-bookworm
|
||||
|
||||
# 配置 apt 阿里云镜像源
|
||||
RUN --mount=type=cache,target=/var/cache/apt \
|
||||
--mount=type=cache,target=/var/lib/apt \
|
||||
apt update \
|
||||
sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources \
|
||||
&& apt update \
|
||||
&& apt install -y libgl1 libglib2.0-0 vim libmagic1 libreoffice dos2unix swig poppler-utils tesseract-ocr
|
||||
|
||||
RUN mkdir -p /home/models \
|
||||
@@ -18,6 +20,8 @@ COPY scripts/images/runtime/start.sh /opt/runtime/start.sh
|
||||
ENV PYTHONPATH=/opt/runtime/datamate/
|
||||
ENV UV_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu"
|
||||
ENV UV_INDEX_STRATEGY=unsafe-best-match
|
||||
# 配置 uv 使用阿里云 PyPI 镜像
|
||||
ENV UV_INDEX_URL="https://mirrors.aliyun.com/pypi/simple/"
|
||||
|
||||
WORKDIR /opt/runtime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user