Spaces:
Running
Running
FROM python:3.12-slim | |
# Install system dependencies for Chrome/Chromium | |
RUN apt-get update && apt-get install -y \ | |
wget \ | |
gnupg \ | |
unzip \ | |
curl \ | |
chromium \ | |
chromium-driver \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set Chrome path for Selenium | |
ENV CHROME_BIN=/usr/bin/chromium | |
ENV CHROMEDRIVER_PATH=/usr/bin/chromedriver | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
EXPOSE 7860 | |
CMD ["python", "app.py"] |