Skip to content

Commit 94a22c4

Browse files
committed
Update Dockerfile to install the latest ChromeDriver version dynamically for improved compatibility
1 parent 073e2ce commit 94a22c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN apt-get -y update && apt-get install -y \
3232

3333
# Install chromedriver
3434
RUN apt-get install -yqq unzip
35-
RUN CHROMEDRIVER_VERSION=133.0.6943.126 && \
36-
wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \
35+
RUN CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE) && \
36+
wget -O /tmp/chromedriver.zip https://storage.googleapis.com/chrome-for-testing-public/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \
3737
unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ && \
3838
chmod +x /usr/local/bin/chromedriver && \
3939
rm /tmp/chromedriver.zip

0 commit comments

Comments
 (0)