npv2k1 commited on
Commit
94a22c4
·
1 Parent(s): 073e2ce

Update Dockerfile to install the latest ChromeDriver version dynamically for improved compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -32,8 +32,8 @@ RUN apt-get -y update && apt-get install -y \
32
 
33
  # Install chromedriver
34
  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 && \
37
  unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ && \
38
  chmod +x /usr/local/bin/chromedriver && \
39
  rm /tmp/chromedriver.zip
 
32
 
33
  # Install chromedriver
34
  RUN apt-get install -yqq unzip
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 && \
37
  unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ && \
38
  chmod +x /usr/local/bin/chromedriver && \
39
  rm /tmp/chromedriver.zip