Link2Doc / DockerFile
n0v33n
Create required file for this space
ff3a25c
raw
history blame contribute delete
481 Bytes
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"]