forked from mirror/pixelfed
17 lines
325 B
Bash
Executable file
17 lines
325 B
Bash
Executable file
#!/bin/bash
|
|
|
|
declare project_root="${PWD}"
|
|
|
|
if command -v git &>/dev/null; then
|
|
project_root=$(git rev-parse --show-toplevel)
|
|
fi
|
|
|
|
exec docker run \
|
|
--rm \
|
|
--interactive \
|
|
--tty \
|
|
--volume "${project_root}:/var/www" \
|
|
--volume "/tmp:/tmp" \
|
|
--workdir /var/www \
|
|
ghcr.io/jippi/dottie \
|
|
"$@"
|