Skip to content

Instantly share code, notes, and snippets.

@matsubo
Last active January 10, 2023 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsubo/ed900c43f9d00c1bc9e24c3873f9efeb to your computer and use it in GitHub Desktop.
Save matsubo/ed900c43f9d00c1bc9e24c3873f9efeb to your computer and use it in GitHub Desktop.
RUN bin/download-chromedriver.sh && mv chromedriver /usr/local/bin/
#!/bin/bash
set -e
version=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
architecture=`uname -m`
if [ $architecture == 'aarch64' ]; then
file='chromedriver_mac_arm64.zip'
else
file='chromedriver_linux64.zip'
fi
url="http://chromedriver.storage.googleapis.com/${version}/${file}"
wget -c -N ${url} && unzip ${file}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment