This commit is contained in:
asmigiel 2025-01-07 22:11:31 +01:00
parent 9c56cc6f29
commit d62381aeca
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM gitea/gitea:1.14.5
FROM gitea/gitea:1.14.5-rootless
WORKDIR /app

4
run.sh
View File

@ -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:]]*"`