this is a adaptation of @lindt Dockerfile to accept multiple files
Docker Container for PlantUML
To use plantuml, it needs to be downloaded, java needs to be installed, graphviz needs to be installed, and these things need to be chained. This docker container does this for you. And allows you to pipe by default into plantuml, so it's neat for script usage.
cat test.uml | docker run --rm -i lucassabreu/plantuml > test.svg
The default will output svg. If png output is wanted, call it like this:
cat test.uml | docker run --rm -i lucassabreu/plantuml -p -tpng > test.png
You can also process multiple files at once using:
docker run --rm -i -v "$(pwd):/puml" lucassabreu/plantuml -tsvg -progress "/puml/*.puml"