Skip to content

Commit c7a615a

Browse files
committed
Update get latest version without api limit rate in Dockerfile of node Firefox
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 10fa7b3 commit c7a615a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NodeFirefox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ RUN apt-get update -qqy && \
6868
# GeckoDriver
6969
#============
7070
ARG GECKODRIVER_VERSION=latest
71-
RUN LATEST_VERSION=$(curl -sk https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.tag_name') \
71+
RUN LATEST_VERSION=$(curl -s -L -o /dev/null -w '%{url_effective}\n' https://github.com/mozilla/geckodriver/releases/latest | sed -E 's#.*/tag/(v[0-9.]+).*#\1#') \
7272
&& DRIVER_ARCH=$(if [ "$(dpkg --print-architecture)" = "amd64" ]; then echo "linux64"; else echo "linux-aarch64"; fi) \
7373
&& GK_VERSION=$(if [ ${GECKODRIVER_VERSION:-latest} = "latest" ]; then echo "${LATEST_VERSION}"; else echo $GECKODRIVER_VERSION; fi) \
7474
&& echo "Using GeckoDriver version: "$GK_VERSION \

0 commit comments

Comments
 (0)