Dockerfile for diagrams
It is more convinient to use this Docker image with entr:
First, set a shell variable containing the diagram script name
export DIAGRAM=diagram.py
Then, use entr to run against the script every time that you change it
echo $DIAGRAM | entr docker run --rm -v $PWD:/data skhaz/diagrams:latest python $DIAGRAM