Dockerfile aktualisiert

This commit is contained in:
2025-07-16 12:47:29 +00:00
parent e41416c705
commit 2a125db7dd

View File

@@ -31,9 +31,9 @@ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add
apt-get install -y google-chrome-stable --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# 4. Passenden Chromedriver installieren (FINALE, DIAGNOSTISCHE UND ROBUSTE METHODE)
# Wir entfernen -q und fügen --no-check-certificate hinzu, um SSL-Probleme zu umgehen und Fehler sichtbar zu machen.
RUN DRIVER_URL=$(wget --no-check-certificate -O- "https://googlechromelabs.github.io/chrome-for-testing/latest-stable-versions.json" | python -c "import json, sys; print(next(d['url'] for d in json.load(sys.stdin)['channels']['Stable']['downloads']['chromedriver'] if d['platform'] == 'linux64'))") \
# 4. Passenden Chromedriver installieren (FINALE, KORREKTE URL)
# Die vorherige URL war falsch (404). Dies ist der korrekte, stabile Endpunkt von Google.
RUN DRIVER_URL=$(wget --no-check-certificate -O- "https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json" | python -c "import json, sys; print(next(d['url'] for d in json.load(sys.stdin)['versions'][-1]['downloads']['chromedriver'] if d['platform'] == 'linux64'))") \
&& wget --no-check-certificate -q "${DRIVER_URL}" -O /tmp/chromedriver.zip \
&& unzip /tmp/chromedriver.zip -d /usr/local/bin/ \
&& mv /usr/local/bin/chromedriver-linux64/chromedriver /usr/local/bin/ \