This is the Docker image with Mermaid CLI. You can use it to render Mermaid text diagrams to images without installing Node.js to your computer :)
Run image vassilevsky/mmdc
and mount current directory at /work
inside the container:
docker run -v ${PWD}:/work vassilevsky/mmdc
It will run the mmdc
binary from the official mermaid.cli
package.
Render a source file in Mermaid format into a 4K image:
docker run -v ${PWD}:/work vassilevsky/mmdc -i diagram.mmd -o diagram.png -w 3840 -H 2160
Pull requests with improvements are welcome :)