2025-05-23 16:33:38 +08:00
|
|
|
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
|
2026-03-20 20:32:00 +08:00
|
|
|
ENV MPLBACKEND=Agg
|
|
|
|
|
ENV MPLCONFIGDIR=/tmp/matplotlib
|
2025-05-23 16:33:38 +08:00
|
|
|
|
|
|
|
|
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 && \
|
2026-03-20 20:32:00 +08:00
|
|
|
mkdir -p /tmp/matplotlib && \
|
2025-05-23 16:33:38 +08:00
|
|
|
uv pip install --system -r requirements.txt
|
|
|
|
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
|
|
|
|
CMD ["sleep", "infinity"]
|