Download Dockerfile.api from HarryDataScience/sentinel-fraud-detection: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/spaces/HarryDataScience/sentinel-fraud-detection/resolve/main/Dockerfile.api
- Command line
-
hf download hf://spaces/HarryDataScience/sentinel-fraud-detection/Dockerfile.api
-
curl -L -o Dockerfile.api https://huggingface.co/spaces/HarryDataScience/sentinel-fraud-detection/resolve/main/Dockerfile.api
262 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir fastapi uvicorn pydantic shap xgboost scikit-learn joblib requests pandas numpy | |
| COPY api/ ./api/ | |
| CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"] | |