Skip to content

Commit

Permalink
add chrome for testing support
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdk committed Mar 23, 2022
1 parent 80c3a48 commit 51f9fb6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,22 @@ RUN apt-get update && apt-get -y install yarn
# Install ember-cli
RUN npm install -g [email protected]

# install chrome for default testem config
RUN \
apt-get update &&\
apt-get install -y \
apt-transport-https \
gnupg \
--no-install-recommends &&\
curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - &&\
echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list &&\
apt-get update &&\
apt-get install -y \
google-chrome-stable \
--no-install-recommends

# tweak chrome to run with --no-sandbox option
RUN \
sed -i 's/"$@"/--no-sandbox "$@"/g' /opt/google/chrome/google-chrome

WORKDIR /app

0 comments on commit 51f9fb6

Please sign in to comment.