diff --git a/Base/Dockerfile b/Base/Dockerfile index c2edf79055..fa7298e39c 100644 --- a/Base/Dockerfile +++ b/Base/Dockerfile @@ -31,5 +31,3 @@ RUN mkdir -p /opt/selenium \ RUN sudo useradd seluser --shell /bin/bash --create-home \ && sudo usermod -a -G sudo seluser \ && echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers - -EXPOSE 4444 diff --git a/Hub/Dockerfile b/Hub/Dockerfile index 795d331f0b..c981b26d19 100644 --- a/Hub/Dockerfile +++ b/Hub/Dockerfile @@ -1,6 +1,8 @@ FROM selenium/base:2.44.0 MAINTAINER Selenium +EXPOSE 4444 + USER seluser CMD java -jar /opt/selenium/selenium-server-standalone.jar -port 4444 -role hub