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
4
4
# Firefox
5
5
#=========
6
6
ARG 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 \
8
9
&& apt-get -qqy --no-install-recommends install firefox \
9
10
&& 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 \
11
12
&& apt-get -y purge firefox \
12
13
&& rm -rf /opt/firefox \
13
14
&& tar -C /opt -xjf /tmp/firefox.tar.bz2 \
@@ -43,5 +44,3 @@ RUN sudo echo ""
43
44
44
45
# Generating a default config during build time
45
46
RUN /opt/bin/generate_config > /opt/selenium/config.json
46
-
47
-
You can’t perform that action at this time.
0 commit comments