diff --git a/run-hugo.sh b/run-hugo.sh new file mode 100755 index 0000000000000000000000000000000000000000..be4e998774077651c649267940482edfc7196220 --- /dev/null +++ b/run-hugo.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# Run hugo in server mode and let it bind on all interface in the container +# such that docker can forward it properly. + +# Website will be available at http://localhost:1313/ while this is running +REPO=$(dirname $(realpath $0)) + +docker run \ + -p 1313:1313/tcp \ + -u $(id -u) \ + -v ${REPO}:/src \ + klakegg/hugo \ + server