2
2
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED.
3
3
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE
4
4
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5
- FROM selenium/node-base:2.53.1
5
+ FROM selenium/node-base:2.53.1-americium
6
6
MAINTAINER Selenium <
[email protected] >
7
7
8
8
USER root
@@ -17,7 +17,7 @@ USER root
17
17
# latest (equivalent to google-chrome-stable)
18
18
# google-chrome-beta (pull latest beta)
19
19
# ============================================
20
- ENV CHROME_VERSION "google-chrome-stable"
20
+ ARG CHROME_VERSION= "google-chrome-stable"
21
21
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
22
22
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
23
23
&& apt-get update -qqy \
@@ -29,7 +29,7 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
29
29
# ==================
30
30
# Chrome webdriver
31
31
# ==================
32
- ENV CHROME_DRIVER_VERSION 2.24
32
+ ARG CHROME_DRIVER_VERSION= 2.24
33
33
RUN wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip \
34
34
&& rm -rf /opt/selenium/chromedriver \
35
35
&& unzip /tmp/chromedriver_linux64.zip -d /opt/selenium \
@@ -41,14 +41,20 @@ RUN wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.stor
41
41
# ========================
42
42
# Selenium Configuration
43
43
# ========================
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
45
49
46
50
# =================================
47
51
# Chrome Launch Script Modication
48
52
# =================================
49
53
COPY chrome_launcher.sh /opt/google/chrome/google-chrome
50
54
RUN chmod +x /opt/google/chrome/google-chrome
51
55
56
+ RUN chown -R seluser:seluser /opt/selenium
57
+
52
58
USER seluser
53
59
# Following line fixes
54
60
# https://github.com/SeleniumHQ/docker-selenium/issues/87
0 commit comments