mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-04-29 14:57:48 +08:00
Fix: code supports matplotlib (#13724)
### What problem does this PR solve? Code as "final" node:  Code as "mid" node:  ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -2,12 +2,15 @@ FROM python:3.11-slim-bookworm
|
||||
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.7.5 /uv /uvx /bin/
|
||||
ENV UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
ENV MPLBACKEND=Agg
|
||||
ENV MPLCONFIGDIR=/tmp/matplotlib
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN grep -rl 'deb.debian.org' /etc/apt/ | xargs sed -i 's|http[s]*://deb.debian.org|https://mirrors.tuna.tsinghua.edu.cn|g' && \
|
||||
apt-get update && \
|
||||
apt-get install -y curl gcc && \
|
||||
mkdir -p /tmp/matplotlib && \
|
||||
uv pip install --system -r requirements.txt
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
numpy
|
||||
pandas
|
||||
matplotlib
|
||||
requests
|
||||
|
||||
Reference in New Issue
Block a user