From 193d536ca1e6f6fca0368f2da6db993484550583 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Thu, 22 Feb 2024 14:54:20 +0000 Subject: [PATCH] update dottie --- docker/dottie | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/dottie b/docker/dottie index bd268a070..6e409def2 100755 --- a/docker/dottie +++ b/docker/dottie @@ -1,16 +1,17 @@ #!/bin/bash -declare root="${PWD}" +declare project_root="${PWD}" if command -v git &>/dev/null; then - root=$(git rev-parse --show-toplevel) + project_root=$(git rev-parse --show-toplevel) fi exec docker run \ --rm \ --interactive \ --tty \ - --volume "${root}:/var/www" \ + --volume "${project_root}:/var/www" \ + --volume "/tmp:/tmp" \ --workdir /var/www \ ghcr.io/jippi/dottie \ "$@"