File size: 863 Bytes
1f14916
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -------------------------------------------------------------
# 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"]