Deepfake_docker / Dockerfile
DegenGamer1702's picture
Create Dockerfile
1f14916 verified
Raw
History Blame Contribute Delete
863 Bytes
# -------------------------------------------------------------
# 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"]