title: Running protractor scripts using Docker Image
body: <p>I am trying to run my protractor scripts using docker image(Dockerfile) .
  For same I am using base image as alpine , and copying my working code in that  using COPY command.
  My docker image looks like below but I am not sure how to install chrome browser into it due to which it is failing while running the test execution command.</p>
  
  <pre><code>FROM node
  RUN mkdir src
  COPY ./_pages /src/_pages
  COPY ./_tests /src/_tests
  COPY ./config /src/config
  COPY ./reports /src/reports
  COPY ./resources /src/resources
  COPY ./src /src/src
  COPY ./test_suites /src/test_suites
  COPY package.json /src/package.json
  COPY tsconfig.json /src/tsconfig.json
  COPY tslint.json /src/tslint.json
  RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
  RUN  sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" &gt;&gt; /etc/apt/sources.list.d/google-chrome.list'
  RUN apt-get -y update
  RUN apt-get -y install google-chrome-stable
  WORKDIR /src
  RUN npm install
  RUN npm run webdriver-update
  RUN npm run webdriver-update-local
  RUN npm run build
  RUN apt-get install openjdk-8-jdk
  ENTRYPOINT npm test
  </code></pre>
  
  <p>When I build+run this image and ran npm test command to execute the scripts. It gives me below error(because of no chrome driver present):</p>
  
  <pre><code>[15:32:59] I/launcher - Running 1 instances of WebDriver
  [15:32:59] I/local - Starting selenium standalone server...
  [15:33:01] I/local - Selenium standalone server started at http://172.17.0.11:47860/wd/hub
  [15:33:21] E/launcher - Timed out waiting for driver server to start.
  Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
  System info: host: 'c9699349ca76', ip: '172.17.0.11', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.184-linuxkit', java.version: '1.8.0_232'
  Driver info: driver.version: unknown
  [15:33:21] E/launcher - WebDriverError: Timed out waiting for driver server to start.
  Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
  System info: host: 'c9699349ca76', ip: '172.17.0.11', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.184-linuxkit', java.version: '1.8.0_232'
  Driver info: driver.version: unknown
  </code></pre>
  
  <p>Can anyone suggest me how to add command to install chrome as a part of docker image?</p>