22# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
33# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
44# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5- FROM selenium/node-base:2.53.1
5+ FROM selenium/node-base:2.53.1-americium
66MAINTAINER Selenium <
[email protected] >
77
88USER root
@@ -17,7 +17,7 @@ USER root
1717# latest (equivalent to google-chrome-stable)
1818# google-chrome-beta (pull latest beta)
1919# ============================================
20- ENV CHROME_VERSION "google-chrome-stable"
20+ ARG CHROME_VERSION= "google-chrome-stable"
2121RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
2222 && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
2323 && apt-get update -qqy \
@@ -29,7 +29,7 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
2929# ==================
3030# Chrome webdriver
3131# ==================
32- ENV CHROME_DRIVER_VERSION 2.24
32+ ARG CHROME_DRIVER_VERSION= 2.24
3333RUN wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip \
3434 && rm -rf /opt/selenium/chromedriver \
3535 && unzip /tmp/chromedriver_linux64.zip -d /opt/selenium \
@@ -41,14 +41,20 @@ RUN wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.stor
4141# ========================
4242# Selenium Configuration
4343# ========================
44- COPY config.json /opt/selenium/config.json
44+ ENV NODE_MAX_INSTANCES 1
45+ ENV NODE_MAX_SESSION 1
46+ ENV NODE_REGISTER_CYCLE 5000
47+ COPY generate_config /opt/selenium/generate_config
48+ RUN chmod +x /opt/selenium/generate_config
4549
4650# =================================
4751# Chrome Launch Script Modication
4852# =================================
4953COPY chrome_launcher.sh /opt/google/chrome/google-chrome
5054RUN chmod +x /opt/google/chrome/google-chrome
5155
56+ RUN chown -R seluser:seluser /opt/selenium
57+
5258USER seluser
5359# Following line fixes
5460# https://github.com/SeleniumHQ/docker-selenium/issues/87
0 commit comments