CoolFace
Apppublic

flutterapp006/kyc

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
Dockerfile31 linesDownload Raw Back to root
1# Use Python 3.92FROM python:3.9-slim3 4# Install system dependencies for OpenCV and GLib5RUN apt-get update && apt-get install -y \6    libgomp1 \7    libgl1 \8    libglib2.0-0 \9    && rm -rf /var/lib/apt/lists/*10 11# Set working directory12WORKDIR /app13 14# Copy requirements and install15COPY requirements.txt .16RUN pip install --no-cache-dir -r requirements.txt17 18# Copy application code19COPY . .20 21# Create cache directory for DeepFace/YOLO to avoid permission errors22# Hugging Face runs as user 100023RUN mkdir -p /app/.deepface && chmod -R 777 /app/.deepface24ENV DEEPFACE_HOME=/app/.deepface25 26# Expose port 7860 (Hugging Face default)27EXPOSE 786028 29# Command to run the app using Gunicorn30CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--timeout", "120"]31