-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Without Chromium Dependencies #1494
Comments
It's better to choose Alpine Linux if you want your Docker image to be lightweight. |
Any update on this? |
Has there been any work done on this? Mermaid isn't currently viable for my image with the extra 600 MB in dependencies that get pulled. |
This has definitely been a pain-point for me, and looks like some new discussion has opened up about this on #3650 , Seems like this issue has gone a bit stale, and is duplicated by discussion on #3650 , so might be worth closing this and continuing conversation over there? @pb-seiso |
Closing as duplicate of #3650 |
I'm attempting to install and run Mermaid in a light-weight Docker container running Ubuntu 20.04.
When interacting with the container and running
mmdc
, I'm receiving the following error originating from Puppeteer:UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
Full error: runtime_error.txt
From the package.json, Puppeteer is a dev dependency only. When installing Mermaid and Mermaid CLI using
yarn add
, I do not specify inclusion of development dependencies.The following entry is in the
yarn.lock
, which does not specify Puppeteer as a dependency:I've tried adding the
--prod
or--production=true
flags to to theyarn add
, butmmdc
still fails with the same issue. It seems the only way to avoid the error is to include all of the many Chromium dependencies that Puppeteer requires, and then it runs successfully.Is there any way to avoid pulling in these dependencies just to run
mmdc
? I'm unfamiliar with yarn, so please let me know if I've missed something.The text was updated successfully, but these errors were encountered: