This commit is contained in:
awieczarek 2024-10-20 15:38:15 +02:00
parent 4f3bde14e4
commit 0e7a4062c2
2 changed files with 2 additions and 1 deletions

View File

@ -11,4 +11,4 @@ COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh
USER root USER root
RUN chmod +x /usr/local/bin/parse_db_url.sh RUN chmod +x /usr/local/bin/parse_db_url.sh
ENTRYPOINT ["/usr/local/bin/parse_db_url.sh && /usr/local/bin/gitea web -port $PORT"] ENTRYPOINT ["/usr/local/bin/parse_db_url.sh"]

View File

@ -6,3 +6,4 @@ export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^
export GITEA__database__HOST=$(echo ${DATABASE_URL} | sed -r "s|.*@([^:]+):.*|\1|") export GITEA__database__HOST=$(echo ${DATABASE_URL} | sed -r "s|.*@([^:]+):.*|\1|")
export GITEA__database__NAME=$(echo ${DATABASE_URL} | sed -r "s|.*:([0-9]+)/([^?]+).*|\2|") export GITEA__database__NAME=$(echo ${DATABASE_URL} | sed -r "s|.*:([0-9]+)/([^?]+).*|\2|")
exec /usr/local/bin/gitea web -port $PORT