Skip to content

Commit

Permalink
add chrome for testing support
Browse files Browse the repository at this point in the history
fixes #26
  • Loading branch information
nvdk committed Jun 1, 2023
1 parent 89f8d4c commit 969804a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,21 @@ RUN apt-get update && apt-get -y install yarn
RUN npm install -g ember-cli@@EMBER_VERSION

WORKDIR /app

# 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

0 comments on commit 969804a

Please sign in to comment.