Skip to content

Commit fbac4e8

Browse files
smccarthydiemol
authored andcommitted
Add NodeFirefoxNightly image (#470)
* use same Firefox image for nightly
1 parent 2d79545 commit fbac4e8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

NodeFirefox/Dockerfile.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ USER root
44
# Firefox
55
#=========
66
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 \
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
4546
RUN /opt/bin/generate_config > /opt/selenium/config.json
46-
47-

0 commit comments

Comments
 (0)