Spaces:
Sleeping
Sleeping
| # Use Python base image | |
| FROM python:3.10-slim | |
| # Install system dependencies (ffmpeg is required for subtitles/video processing) | |
| RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/* | |
| # Copy dependency list and install Python packages | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy your whole app code into container | |
| COPY . /app | |
| WORKDIR /app | |
| # Hugging Face Spaces requires the app to listen on port 7860 | |
| ENV PORT=7860 | |
| # Run the Flask app | |
| CMD ["python", "app.py"] | |