Spaces:
Build error
Build error
| FROM python:3.9-slim | |
| # 安装中文字体 | |
| RUN apt-get update && apt-get install -y \ | |
| fonts-noto-cjk \ | |
| fonts-wqy-microhei \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 重建字体缓存 | |
| RUN python -c "import matplotlib; matplotlib.font_manager._rebuild()" | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] |