Spaces:
Paused
Paused
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl unzip \ | |
| # Camoufox/Firefox runtime dependencies | |
| libgtk-3-0 \ | |
| libdbus-glib-1-2 \ | |
| libxt6 \ | |
| libasound2 \ | |
| libx11-xcb1 \ | |
| libxcomposite1 \ | |
| libxcursor1 \ | |
| libxdamage1 \ | |
| libxext6 \ | |
| libxfixes3 \ | |
| libxi6 \ | |
| libxrandr2 \ | |
| libxrender1 \ | |
| libxtst6 \ | |
| libpango-1.0-0 \ | |
| libcairo2 \ | |
| libatk1.0-0 \ | |
| libgdk-pixbuf-2.0-0 \ | |
| libnspr4 \ | |
| libnss3 \ | |
| fonts-liberation \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Pre-download Camoufox browser at build time (avoid 713MB runtime download) | |
| RUN python -m camoufox fetch | |
| ENV DOWN_LINK="" | |
| COPY entrypoint.sh . | |
| RUN chmod +x entrypoint.sh | |
| ENTRYPOINT ["./entrypoint.sh"] | |