Spaces:
Runtime error
Runtime error
File size: 834 Bytes
cbf58a5 5427076 cbf58a5 a0bdeee 5427076 a0bdeee cbf58a5 5427076 a0bdeee cbf58a5 5427076 |
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 |
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"] |