diff --git a/Dockerfile b/Dockerfile index ab3ba52..deb94c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM gitea/gitea:1.14.5 +FROM gitea/gitea:1.14.5-rootless WORKDIR /app diff --git a/run.sh b/run.sh index 5ef478a..9b0fe5d 100644 --- a/run.sh +++ b/run.sh @@ -1,10 +1,10 @@ #!/bin/bash -FILE=/app/app_url.txt +FILE=./app_url.txt ROOT_URL=$(cat $FILE) - +printf($ROOT_URL) HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-` NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-` USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"`