# ------------------------------------------------------------- # Hugging Face Deepfake Detection Docker Image # ------------------------------------------------------------- # Base image: includes TensorFlow 2.18 GPU with CUDA/cuDNN FROM tensorflow/tensorflow:2.18.0-gpu # Avoid interactive prompts ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies for OpenCV & dlib RUN apt-get update && apt-get install -y \ python3-opencv \ libgl1-mesa-glx \ cmake \ build-essential \ wget \ && rm -rf /var/lib/apt/lists/* # Install required Python libraries RUN pip install --no-cache-dir \ gradio \ dlib \ imutils \ scipy \ numpy \ opencv-python-headless # Create app directory WORKDIR /app COPY . /app # Expose port for Gradio EXPOSE 7860 # Default command to run the Gradio app CMD ["python", "app.py"]