Skip to content

Commit 19f1935

Browse files
authored
Merge pull request #267 from SeleniumHQ/specific-chrome-version
add ability to install specific chrome version. fixes #266
2 parents 0d4bd48 + 1674fbb commit 19f1935

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

NodeChrome/Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@ MAINTAINER Selenium <[email protected]>
33

44
USER root
55

6-
#===============
6+
#============================================
77
# Google Chrome
8-
#===============
8+
#============================================
9+
# can specify versions by CHROME_VERSION;
10+
# e.g. google-chrome-stable=53.0.2785.101-1
11+
# google-chrome-beta=53.0.2785.92-1
12+
# google-chrome-unstable=54.0.2840.14-1
13+
# latest (equivalent to google-chrome-stable)
14+
# google-chrome-beta (pull latest beta)
15+
#============================================
16+
ENV CHROME_VERSION "google-chrome-stable"
917
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
1018
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
1119
&& apt-get update -qqy \
1220
&& apt-get -qqy install \
13-
google-chrome-stable \
21+
${CHROME_VERSION:-google-chrome-stable} \
1422
&& rm /etc/apt/sources.list.d/google-chrome.list \
1523
&& rm -rf /var/lib/apt/lists/*
1624

0 commit comments

Comments
 (0)