Docker-Image with XML and SVG Tools to play with SVGs.
You can use xmlstarlet
and rsvg
binaries.
- Runs as non-root with fixed UID 10777 and GID 10777. See howto prepare volume permissions.
- See howto use SystemD for named Docker-Containers and system startup.
If you have something like demo/convert-icons.sh
. (See demo folder)
#!/bin/sh
rsvg -w 32 -h 32 /icons/icons/circle.svg -o /icons/build/circle-32.png
And a folder demo/icons/
with a circle.svg
you can do
docker run \
-i -t \
-v $(pwd)/demo/:/icons/ \
codeclou/docker-xml-and-svg-tools:latest \
sh /icons/convert-icons.sh
To create demo/build/circle-32.png
from the svg.
- Dockerfile and Image is provided under MIT License