node-graph-viewer / Dockerfile
MarcoXL's picture
redesign UI: reuse annotation desk frontend (read-only), switch to docker SDK
3613e77
Raw History Blame Contribute Delete
489 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY web/ web/
COPY graph.sqlite .
# HF Spaces 用非 root 跑,缓存目录要可写——
# 街景图按需从 CDN 拉取后缓存在这里
RUN mkdir -p /app/.cache && chmod 777 /app/.cache
ENV HF_HOME=/app/.cache \
SETVL_DB=/app/graph.sqlite \
SETVL_PACKAGE=/app/package
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]