Download Dockerfile from HarryDataScience/sentinel-fraud-detection: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/HarryDataScience/sentinel-fraud-detection/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HarryDataScience/sentinel-fraud-detection/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HarryDataScience/sentinel-fraud-detection/resolve/main/Dockerfile
507 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONPATH=/app \ | |
| AUTH_DISABLED=true RATE_LIMIT_PER_MIN=600 ALLOWED_ORIGINS=* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY src/ src/ | |
| COPY api/ api/ | |
| COPY frontend/ frontend/ | |
| COPY model/ model/ | |
| # Hugging Face runs Docker Spaces as UID 1000 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"] | |