Spaces:
Paused
Paused
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| curl \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy application files | |
| COPY . /app | |
| # Install Python dependencies (including OpenAI SDK) | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt | |
| # Expose Flask port | |
| EXPOSE 7860 | |
| # Run the Flask application | |
| CMD ["python", "app.py"] |