Skip to content

Commit

Permalink
change: auto download latest chromedriver.
Browse files Browse the repository at this point in the history
  • Loading branch information
i13302 committed Oct 3, 2023
1 parent 541c7de commit 2219dae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions printout/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ RUN apk add -U unzip curl
#===================================================================================================
# from Chromeの最新メジャーバージョンを元にChromeDriverの最新バージョンを取得するよう修正する by masaru-b-cl · Pull Request #16 · prismatix-jp/openjdk-with-git https://github.com/prismatix-jp/openjdk-with-git/pull/16/files
FROM extracter as unzipperchromedriver
RUN CHROME_LATEST_VERSION=$(curl -sS omahaproxy.appspot.com/linux?channel=beta) && \
CHROME_LATEST_MAJOR_VERSION=$(echo $CHROME_LATEST_VERSION | cut -d . -f 1) && \
CHROME_DRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_LATEST_MAJOR_VERSION) && \
curl -sS http://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip -o chromedriver_linux64.zip && \
unzip -q chromedriver_linux64.zip
RUN curl -O https://chromedriver.storage.googleapis.com/$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
unzip -q chromedriver_linux64.zip
#===================================================================================================

#===================================================================================================
Expand Down

0 comments on commit 2219dae

Please sign in to comment.