Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| # 1) Install Chromium + driver + required libraries | |
| RUN apt-get update && apt-get install -y \ | |
| chromium \ | |
| chromium-driver \ | |
| wget \ | |
| gnupg \ | |
| unzip \ | |
| curl \ | |
| ca-certificates \ | |
| fonts-liberation \ | |
| libappindicator3-1 \ | |
| libasound2 \ | |
| libatk-bridge2.0-0 \ | |
| libnspr4 \ | |
| libnss3 \ | |
| libx11-xcb1 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| xdg-utils \ | |
| libu2f-udev \ | |
| libvulkan1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2) Set working directory | |
| WORKDIR /app | |
| # 3) Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 4) Copy application code | |
| COPY app.py . | |
| # 5) Point undetected-chromedriver at system Chromium | |
| ENV CHROME_BINARY=/usr/bin/chromium | |
| # 6) Launch the Gradio app | |
| CMD ["python", "app.py"] |