-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try the troubleshooting steps from puppeteer
- Loading branch information
1 parent
eeb22da
commit cc0cfd9
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters