Skip to content

Commit

Permalink
Update Docker file for ccodwg-archive
Browse files Browse the repository at this point in the history
- Update version selection for Chromedriver (#38)
  • Loading branch information
jeanpaulrsoucy committed Aug 17, 2023
1 parent 5b470de commit 0f04b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/ccodwg-archive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get -y update && apt-get install -y \
unzip

# download and unzip Chromedriver
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
RUN wget -O /tmp/chromedriver.zip $(python -c "import requests, json; print(json.loads(requests.get('https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json').text)['channels']['Stable']['downloads']['chromedriver'][0]['url'])")
RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/

# set display port environmental variable
Expand Down

0 comments on commit 0f04b37

Please sign in to comment.