Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryCollection authored Nov 15, 2024
1 parent d1990b5 commit 0cfe0d1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 0cfe0d1

Please # to comment.