Spaces:
Sleeping
Sleeping
Download Dockerfile from SpatialWebAgent/docker2: direct link, hf CLI and curl.
- Browser
- Download file 598 Bytes
-
https://huggingface.co/spaces/SpatialWebAgent/docker2/resolve/73981b0c33d389ff76eb0bbb33dbbccbc74aff50/Dockerfile
- Command line
-
hf download hf://spaces/SpatialWebAgent/docker2@73981b0c33d389ff76eb0bbb33dbbccbc74aff50/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SpatialWebAgent/docker2/resolve/73981b0c33d389ff76eb0bbb33dbbccbc74aff50/Dockerfile
598 Bytes
| 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"] | |