This commit is contained in:
2025-11-12 01:25:12 +01:00
parent 43de23432e
commit 08262a80dc

View File

@ -1,10 +1,10 @@
FROM python:3.11-slim FROM python:3.11-slim
# Install Chrome and dependencies # Install dependencies
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y wget gnupg2 && \ apt-get install -y wget curl gnupg2 lsb-release && \
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \ curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg && \
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
apt-get update && \ apt-get update && \
apt-get install -y google-chrome-stable chromium-driver && \ apt-get install -y google-chrome-stable chromium-driver && \
apt-get clean apt-get clean