kopia lustrzana https://github.com/pixelfed/pixelfed
update dottie
rodzic
f264dd1cbb
commit
193d536ca1
|
@ -1,16 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
declare root="${PWD}"
|
declare project_root="${PWD}"
|
||||||
|
|
||||||
if command -v git &>/dev/null; then
|
if command -v git &>/dev/null; then
|
||||||
root=$(git rev-parse --show-toplevel)
|
project_root=$(git rev-parse --show-toplevel)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec docker run \
|
exec docker run \
|
||||||
--rm \
|
--rm \
|
||||||
--interactive \
|
--interactive \
|
||||||
--tty \
|
--tty \
|
||||||
--volume "${root}:/var/www" \
|
--volume "${project_root}:/var/www" \
|
||||||
|
--volume "/tmp:/tmp" \
|
||||||
--workdir /var/www \
|
--workdir /var/www \
|
||||||
ghcr.io/jippi/dottie \
|
ghcr.io/jippi/dottie \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
Ładowanie…
Reference in New Issue