Spaces:
Sleeping
Sleeping
Download Dockerfile from DriveHealth/DCE: direct link, hf CLI and curl.
- Browser
- Download file 789 Bytes
-
https://huggingface.co/spaces/DriveHealth/DCE/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DriveHealth/DCE/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DriveHealth/DCE/resolve/main/Dockerfile
789 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install only serving dependencies (no torch needed — ONNX Runtime only) | |
| COPY requirements-serve.txt . | |
| RUN pip install --no-cache-dir -r requirements-serve.txt | |
| # Copy application code | |
| COPY service/ service/ | |
| COPY decision/ decision/ | |
| COPY streaming_intent/ streaming_intent/ | |
| COPY config/ config/ | |
| COPY list/ list/ | |
| COPY artifacts/onnx_int8/ artifacts/onnx_int8/ | |
| COPY artifacts/config/ artifacts/config/ | |
| # HF Spaces expects port 7860 | |
| ENV PORT=7860 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV REQUIRE_AUTH=false | |
| ENV DISABLE_DOCS=false | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "service.app:app", "--host", "0.0.0.0", "--port", "7860"] | |