Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # 安装系统依赖(GDAL、shapely、geopandas 需要) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| g++ \ | |
| git \ | |
| curl \ | |
| gcc \ | |
| gdal-bin \ | |
| libgdal-dev \ | |
| libgeos-dev \ | |
| libspatialindex-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 复制文件 | |
| WORKDIR /app | |
| COPY . . | |
| # 安装 Python 依赖 | |
| RUN pip install --upgrade pip && pip install wheel | |
| RUN pip install --no-deps -r requirements_geospacy.txt | |
| # 设置 Streamlit 默认运行 | |
| CMD ["streamlit", "run", "1_SpatialParse.py", "--server.port=7860", "--server.address=0.0.0.0"] | |