pixelfed/docker/dottie

18 lines
325 B
Text
Raw Normal View History

2024-02-21 22:29:07 +00:00
#!/bin/bash
2024-02-22 14:54:20 +00:00
declare project_root="${PWD}"
2024-02-21 22:29:07 +00:00
if command -v git &>/dev/null; then
2024-02-22 14:54:20 +00:00
project_root=$(git rev-parse --show-toplevel)
2024-02-21 22:29:07 +00:00
fi
exec docker run \
--rm \
--interactive \
--tty \
2024-02-22 14:54:20 +00:00
--volume "${project_root}:/var/www" \
--volume "/tmp:/tmp" \
2024-02-21 22:29:07 +00:00
--workdir /var/www \
ghcr.io/jippi/dottie \
"$@"