File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ USER root
44# Firefox
55#=========
66ARG FIREFOX_VERSION=57.0.4
7- RUN apt-get update -qqy \
7+ RUN FIREFOX_DOWNLOAD_URL=$(if [ $FIREFOX_VERSION = "nightly" ]; then echo "https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US"; else echo "https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2"; fi) \
8+ && apt-get update -qqy \
89 && apt-get -qqy --no-install-recommends install firefox \
910 && rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
10- && wget --no-verbose -O /tmp/firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 \
11+ && wget --no-verbose -O /tmp/firefox.tar.bz2 $FIREFOX_DOWNLOAD_URL \
1112 && apt-get -y purge firefox \
1213 && rm -rf /opt/firefox \
1314 && tar -C /opt -xjf /tmp/firefox.tar.bz2 \
@@ -43,5 +44,3 @@ RUN sudo echo ""
4344
4445# Generating a default config during build time
4546RUN /opt/bin/generate_config > /opt/selenium/config.json
46-
47-
You can’t perform that action at this time.
0 commit comments