Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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