| FROM python:3.9 | |
| # 1. Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libavdevice-dev \ | |
| libavfilter-dev \ | |
| libopus-dev \ | |
| libvpx-dev \ | |
| pkg-config \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. Set working directory | |
| WORKDIR /app | |
| # 3. Upgrade pip | |
| RUN pip install --upgrade pip | |
| # 4. Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 5. Copy ALL files (Including the new .streamlit folder) | |
| COPY . . | |
| # 6. Expose the port | |
| EXPOSE 7860 | |
| # 7. Run App (Simple command, relying on config.toml) | |
| CMD ["streamlit", "run", "app.py"] | |