| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Initialize git-lfs | |
| RUN git lfs install | |
| # Copy files | |
| COPY requirements.txt . | |
| COPY . . | |
| # Install Python packages | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variable for Gradio | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| # Run app | |
| CMD ["python", "app.py"] |