Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dodozhang21/11a91452d9a1afd6133775d96e2b8266 to your computer and use it in GitHub Desktop.
Save dodozhang21/11a91452d9a1afd6133775d96e2b8266 to your computer and use it in GitHub Desktop.
# Copied and modified from https://github.com/amio/docker-node-chrome
FROM node:6.10.3
LABEL name="node-chrome"
# Install Chrome
RUN echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN set -x \
&& apt-get update \
&& apt-get install -y \
google-chrome-stable
ENV CHROME_BIN /usr/bin/google-chrome
ENV CHROME_PATH /usr/bin/google-chrome
# Log versions
RUN set -x \
&& node -v \
&& npm -v \
&& google-chrome --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment