Skip to content

Commit f5a4f5f

Browse files
authored
Merge pull request #386 from a-k-g/add-dbus-to-etc-environment
Add DBUS_SESSION_BUS_ADDRESS to /etc/environment (Fixes #358)
2 parents 04baf82 + 88584de commit f5a4f5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

NodeChrome/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ RUN chmod +x /opt/google/chrome/google-chrome
5656

5757
RUN chown -R seluser:seluser /opt/selenium
5858

59-
USER seluser
6059
# Following line fixes
6160
# https://github.com/SeleniumHQ/docker-selenium/issues/87
62-
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
61+
RUN echo "DBUS_SESSION_BUS_ADDRESS=/dev/null" >> /etc/environment
62+
63+
USER seluser

0 commit comments

Comments
 (0)