add small dottie wrapper

This commit is contained in:
Christian Winther 2024-02-21 22:29:07 +00:00
parent adf1af3703
commit f486bfb73e

16
docker/dottie Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
declare root="${PWD}"
if command -v git &>/dev/null; then
root=$(git rev-parse --show-toplevel)
fi
exec docker run \
--rm \
--interactive \
--tty \
--volume "${root}:/var/www" \
--workdir /var/www \
ghcr.io/jippi/dottie \
"$@"