Browse Source

add small dottie wrapper

Christian Winther 1 năm trước cách đây
mục cha
commit
f486bfb73e
1 tập tin đã thay đổi với 16 bổ sung0 xóa
  1. 16 0
      docker/dottie

+ 16 - 0
docker/dottie

@@ -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 \
+    "$@"