# ═══════════════════════════════════════════════════════════════════════════════ # SCAM HONEYPOT SYSTEM - DOCKERFILE # India AI Impact Buildathon 2025 # ═══════════════════════════════════════════════════════════════════════════════ # Use Python 3.10 Slim (Lightweight & Fast) FROM python:3.10-slim # Set working directory WORKDIR /app # Copy requirements first (Docker cache optimization) COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY app/ ./app/ COPY dashboard.py . # Create non-root user (Hugging Face requirement) RUN useradd -m -u 1000 user # Create data directory and set permissions RUN mkdir -p /app/data && chown -R user:user /app USER user # Set environment variables ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ PYTHONPATH=/app # Expose port (Hugging Face Spaces requires 7860) EXPOSE 7860 # Command to run the API CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]