From ec17b6e04b572ae3dad2d0b6f88e619f9f164c9b Mon Sep 17 00:00:00 2001 From: "Charles-P. Clermont" Date: Fri, 5 Jan 2024 12:13:47 -0500 Subject: [PATCH] Try the troubleshooting steps from puppeteer --- Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3da3e42..7fc7b8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,13 +11,21 @@ RUN apt-get update \ && rbenv install 3.2.0 \ && rbenv global 3.2.0 +# Install latest chrome stable package. +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - +RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' +RUN apt-get update \ + && apt-get install -y google-chrome-stable --no-install-recommends \ + && apt-get clean + +# install puppeteer and stuff ENV npm_config_prefix="$GITHUB_WORKSPACE/.node" ENV PATH="$npm_config_prefix:${PATH}" RUN mkdir -p "$npm_config_prefix" \ && chmod -R 777 "$npm_config_prefix" \ && umask 000 \ - && npm install -g @lhci/cli@0.13.x puppeteer \ - && npx puppeteer browsers install chrome + && npm install -g @lhci/cli@0.13.x lighthouse puppeteer +RUN npx puppeteer browsers install chrome # every time RUN npm install -g @shopify/cli @shopify/theme