-
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf80f7e
commit ff2246f
Showing
3 changed files
with
39 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,41 @@ | ||
FROM node:lts | ||
FROM node:10 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y build-essential | ||
RUN apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 --assume-yes | ||
RUN apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 --assume-yes | ||
|
||
USER root | ||
|
||
RUN node --version | ||
|
||
# install Chromebrowser | ||
RUN \ | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \ | ||
apt-get update && \ | ||
apt-get install -y dbus-x11 google-chrome-stable google-chrome-beta && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# "fake" dbus address to prevent errors | ||
# https://github.com/SeleniumHQ/docker-selenium/issues/87 | ||
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null | ||
|
||
# Add zip utility - it comes in very handy | ||
RUN apt-get update && apt-get install -y zip | ||
|
||
# versions of local tools | ||
RUN node -v | ||
RUN npm -v | ||
RUN yarn -v | ||
RUN google-chrome --version | ||
RUN google-chrome-beta --version | ||
RUN zip --version | ||
RUN git --version | ||
|
||
# a few environment variables to make NPM installs easier | ||
# good colors for most applications | ||
ENV TERM xterm | ||
# avoid million NPM install messages | ||
ENV npm_config_loglevel warn | ||
# allow installing when the main user is root | ||
ENV npm_config_unsafe_perm true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters