Add google chrome and NPM modules to discourse_test image

This commit is contained in:
David Taylor 2017-08-18 17:42:58 +01:00
parent 02d9a65466
commit 050a1a6a83
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,13 @@ RUN gem update bundler &&\
RUN npm install -g eslint babel-eslint
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&\
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list &&\
apt-get update &&\
apt-get install -y google-chrome-stable
RUN sudo -E -u discourse -H npm install chrome-launcher chrome-remote-interface
WORKDIR /var/www/discourse
ENV LANG en_US.UTF-8
ENTRYPOINT sudo -E -u discourse -H ruby script/docker_test.rb