mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
add small dottie wrapper
This commit is contained in:
parent
adf1af3703
commit
f486bfb73e
1 changed files with 16 additions and 0 deletions
16
docker/dottie
Executable file
16
docker/dottie
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/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 \
|
||||
"$@"
|
Loading…
Reference in a new issue