CoolFace
Apppublic

executor1389/RealTimeCreditCardFraudDetectionApi

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1FROM python:3.10-slim2 3WORKDIR /app4 5# Install system dependencies for LightGBM6RUN apt-get update && apt-get install -y \7    libgomp1 \8    && rm -rf /var/lib/apt/lists/*9 10COPY requirements.txt .11RUN pip install --no-cache-dir -r requirements.txt12 13COPY . .14 15# Ensure model is available or provide a placeholder16# In production, we'd download from MLflow registry17# Hugging Face default port is 786018EXPOSE 786019 20CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "7860"]21