Skip to content

Commit 83df668

Browse files
committed
Fix chromedriver version in Dockerfile to ensure compatibility with current setup
1 parent b58654e commit 83df668

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ RUN apt-get -y update && apt-get install -y \
3030
libgtk-3-0 \
3131
libgbm1
3232

33-
# Install chromedriver matching Chrome version
34-
RUN CHROME_VERSION=$(google-chrome --version | awk '{print $3}' | awk -F'.' '{print $1}') && \
35-
CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION) && \
33+
# Install chromedriver
34+
RUN apt-get install -yqq unzip
35+
RUN CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE) && \
3636
wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \
3737
unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ && \
3838
chmod +x /usr/local/bin/chromedriver && \

0 commit comments

Comments
 (0)