Skip to content

Commit

Permalink
Try the troubleshooting steps from puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
charlespwd committed Jan 5, 2024
1 parent eeb22da commit cc0cfd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] puppeteer \
&& npx puppeteer browsers install chrome
&& npm install -g @lhci/[email protected] lighthouse puppeteer \
&& npm link puppeteer

# every time
RUN npm install -g @shopify/cli @shopify/theme
Expand Down
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ ci:
- "--disable-setuid-sandbox"
- "--disable-dev-shm-usage"
- "--disable-gpu"
- "--executable-path"
- "google-chrome-stable"
upload:
target: temporary-public-storage
assert:
Expand Down

0 comments on commit cc0cfd9

Please sign in to comment.