Laravel Sail instructions #90
piotrjoniec
started this conversation in
General
Replies: 3 comments 2 replies
-
@piotrjoniec this should be added to the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi guys! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found the complete solution: https://laracasts.com/discuss/channels/laravel/run-browsershot-in-laravel-sail-on-arm64-mac |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If anyone is trying to get it to work with Laravel Sail, this is what worked for me.
First, make sure to publish the Sail Dockerfile:
Add this at the end of your Dockerfile (before
EXPOSE 8000
):RUN npx puppeteer browsers install chrome \ && mkdir /home/sail/.cache \ && mv /root/.cache/puppeteer /home/sail/.cache \ && apt-get update \ && apt-get install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 \ libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 \ libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 \ libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
Rebuild the containers:
Beta Was this translation helpful? Give feedback.
All reactions