mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
17 lines
274 B
Text
17 lines
274 B
Text
|
#!/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 \
|
||
|
"$@"
|