Spaces:
Paused
Paused
File size: 855 Bytes
a3d2bd4 90917d2 a3d2bd4 90917d2 a3d2bd4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 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"]
|