Spaces:
Runtime error
Runtime error
Zhen Ye
Claude Opus 4.6 (1M context)
refactor: migrate to uv, prompt-tune BAML mission planner and assessor
18a11bc Download Dockerfile from BiasLab2025/ISR: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/spaces/BiasLab2025/ISR/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BiasLab2025/ISR/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BiasLab2025/ISR/resolve/main/Dockerfile
887 Bytes
| FROM python:3.10.7-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 | |
| # Install uv for fast dependency management | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv | |
| # Create a non-root user with UID 1000 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY --chown=user pyproject.toml uv.lock ./ | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| wget \ | |
| ca-certificates \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && uv pip install --system --no-cache -r pyproject.toml \ | |
| && python -c "import transformers; print('transformers', transformers.__version__); print('has Sam2Model', hasattr(transformers, 'Sam2Model'))" | |
| COPY --chown=user . . | |
| USER user | |
| ENV HOME=/home/user | |
| ENV PATH=/home/user/.local/bin:$PATH | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |