Spaces:
Build error
Build error
File size: 443 Bytes
10faeee e5831ce 10faeee 20fe09b af16f41 10faeee e5831ce af16f41 10faeee af16f41 10faeee 20fe09b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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"] |