mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 07:45:22 +00:00
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 \
|
|
"$@"
|