mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
18 lines
325 B
Bash
Executable file
18 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 \
|
|
"$@"
|