File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,18 +182,18 @@ apt-get -y autoremove
182182apt-get clean
183183rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
184184
185- # Install Google Chrome for Testing
186- wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
185+ # Download Chrome using curl (-L follows redirects, -o specifies output file)
186+ curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o google-chrome-stable_current_amd64.deb && \
187187apt-get update && \
188188apt-get install -y ./google-chrome-stable_current_amd64.deb && \
189189rm google-chrome-stable_current_amd64.deb
190190
191191# We use the "Chrome for Testing" API to ensure the driver matches the browser version.
192192CHROME_VERSION=" $( google-chrome --version | cut -d ' ' -f 3) " && \
193- curl -sSL " https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE" > /tmp/stable_version && \
194- DRIVER_URL=" https://storage.googleapis.com/chrome-for-testing-public/$( cat /tmp/stable_version ) /linux64/chromedriver-linux64.zip" && \
195- wget -q " $DRIVER_URL " -O /tmp/chromedriver.zip && \
193+ STABLE_VERSION= $( curl -sSL " https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE" ) && \
194+ DRIVER_URL=" https://storage.googleapis.com/chrome-for-testing-public/${STABLE_VERSION} /linux64/chromedriver-linux64.zip" && \
195+ curl -sSL " $DRIVER_URL " -o /tmp/chromedriver.zip && \
196196unzip /tmp/chromedriver.zip -d /usr/local/bin/ && \
197197mv /usr/local/bin/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver && \
198198chmod +x /usr/local/bin/chromedriver && \
199- rm /tmp/chromedriver.zip /tmp/stable_version
199+ rm /tmp/chromedriver.zip
You can’t perform that action at this time.
0 commit comments