Spaces:
Configuration error
Configuration error
Download Dockerfile from colors99999/enrollmentapi: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/colors99999/enrollmentapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/colors99999/enrollmentapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/colors99999/enrollmentapi/resolve/main/Dockerfile
341 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install dependencies first (better layer caching) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the app | |
| COPY . . | |
| # Hugging Face Spaces expects the app to listen on port 7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |