# Use official Python base image FROM python:3.10-slim # Install dependencies RUN apt-get update && apt-get install -y \ git \ curl \ ffmpeg \ libsm6 \ libxext6 \ cmake \ rsync \ libgl1-mesa-glx \ && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \ && apt-get install -y git-lfs \ && git lfs install \ && rm -rf /var/lib/apt/lists/* # Set workdir WORKDIR /app # Copy files COPY . /app # Install Python packages RUN pip install --upgrade pip RUN pip install -r requirements.txt # Expose Gradio port EXPOSE 7860 # Run Hugging Face Space CMD ["python", "app.py"]