Files
wehub-resource-sync f36e2104d8
tests / ragflow_tests_infinity (push) Has been cancelled
tests / ragflow_tests_elasticsearch (push) Has been cancelled
sep-tests / ragflow_preflight (push) Has been cancelled
sep-tests / ragflow_tests_infinity (push) Has been cancelled
sep-tests / ragflow_tests_elasticsearch (push) Has been cancelled
tests / ragflow_preflight (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:16:49 +08:00

27 lines
845 B
Docker

FROM python:3.11-slim-bookworm
ARG NEED_MIRROR=1
COPY --from=ghcr.io/astral-sh/uv:0.7.5 /uv /uvx /bin/
ENV MPLBACKEND=Agg
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV MATPLOTLIBRC=/usr/local/etc/matplotlibrc
COPY requirements.txt .
COPY matplotlibrc /usr/local/etc/matplotlibrc
RUN if [ "$NEED_MIRROR" = 1 ]; then \
grep -rl 'deb.debian.org' /etc/apt/ | xargs sed -i 's|http[s]*://deb.debian.org|https://mirrors.tuna.tsinghua.edu.cn|g'; \
export UV_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"; \
else \
export UV_INDEX_URL="https://pypi.org/simple"; \
fi; \
apt-get update && \
apt-get install -y --no-install-recommends curl gcc && \
mkdir -p /tmp/matplotlib && \
uv pip install --system -r requirements.txt && \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
CMD ["sleep", "infinity"]