From 0cfe0d178658133a38692379b43946c4958885b6 Mon Sep 17 00:00:00 2001 From: dong Date: Fri, 15 Nov 2024 17:54:43 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 928d914..8c2c591 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,14 +17,15 @@ RUN apt-get update && apt-get install -y \ curl \ && rm -rf /var/lib/apt/lists/* -# 使用新的链接下载 Chrome 浏览器并安装 -RUN wget https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.69/linux64/chrome-linux64.zip -O chrome.zip && \ +# 安装 Chrome 浏览器和 ChromeDriver +RUN mkdir -p /opt/google/chrome /usr/local/bin && \ + wget https://storage.googleapis.com/chrome-for-testing-public/133.0.6836.0/linux64/chrome-linux64.zip -O chrome.zip && \ + ls -lh chrome.zip && \ unzip chrome.zip && \ mv chrome-linux64 /opt/google/chrome && \ - rm chrome.zip - -# 使用新的链接下载 ChromeDriver 并安装 -RUN wget https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.69/linux64/chromedriver-linux64.zip -O chromedriver.zip && \ + rm chrome.zip && \ + wget https://storage.googleapis.com/chrome-for-testing-public/133.0.6836.0/linux64/chromedriver-linux64.zip -O chromedriver.zip && \ + ls -lh chromedriver.zip && \ unzip chromedriver.zip && \ mv chromedriver /usr/local/bin/chromedriver && \ chmod +x /usr/local/bin/chromedriver && \