File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,6 @@ COPY chrome_launcher.sh /opt/google/chrome/google-chrome
37
37
RUN chmod +x /opt/google/chrome/google-chrome
38
38
39
39
USER seluser
40
+ # Following line fixes
41
+ # https://github.com/SeleniumHQ/docker-selenium/issues/87
42
+ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
Original file line number Diff line number Diff line change @@ -5,10 +5,17 @@ USER root
5
5
#=========
6
6
# Firefox
7
7
#=========
8
+ ENV FIREFOX_VERSION 45.0.2
8
9
RUN apt-get update -qqy \
9
- && apt-get -qqy --no-install-recommends install \
10
- firefox \
11
- && rm -rf /var/lib/apt/lists/*
10
+ && apt-get -qqy --no-install-recommends install firefox \
11
+ && rm -rf /var/lib/apt/lists/* \
12
+ && 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 \
13
+ && apt-get -y purge firefox \
14
+ && rm -rf /opt/firefox \
15
+ && tar -C /opt -xjf /tmp/firefox.tar.bz2 \
16
+ && rm /tmp/firefox.tar.bz2 \
17
+ && mv /opt/firefox /opt/firefox-$FIREFOX_VERSION \
18
+ && ln -fs /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox
12
19
13
20
#========================
14
21
# Selenium Configuration
You can’t perform that action at this time.
0 commit comments