Spaces:
Running
Running
FROM python:3.10-slim | |
RUN apt-get update && apt-get install -y \ | |
wget unzip curl gnupg ca-certificates fonts-liberation libappindicator3-1 \ | |
libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 \ | |
libnspr4 libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils \ | |
libu2f-udev libvulkan1 && \ | |
rm -rf /var/lib/apt/lists/* | |
# Install Chrome 114 | |
RUN wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb && \ | |
apt install -y ./google-chrome-stable_114.0.5735.90-1_amd64.deb && \ | |
rm google-chrome-stable_114.0.5735.90-1_amd64.deb | |
# Install matching Chromedriver (114) | |
RUN wget -q https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip && \ | |
unzip chromedriver_linux64.zip && \ | |
mv chromedriver /usr/bin/chromedriver && \ | |
chmod +x /usr/bin/chromedriver && \ | |
rm chromedriver_linux64.zip | |
WORKDIR /app | |
COPY . . | |
RUN pip install --no-cache-dir -r requirements.txt | |
CMD | |