Spaces:
Sleeping
Sleeping
| # Use Python 3.10 as base | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /home/user/app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| rsync \ | |
| libgl1 \ | |
| portaudio19-dev \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| # Upgrade pip and clear cache | |
| RUN pip install --upgrade pip && pip cache purge | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all project files into container | |
| COPY . . | |
| # Expose port (for Gradio app if you run it) | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["python", "app.py"] | |