From 0e7a4062c2a28c4191ea67b71ba6d4acc86b3382 Mon Sep 17 00:00:00 2001 From: awieczarek Date: Sun, 20 Oct 2024 15:38:15 +0200 Subject: [PATCH] Test --- Dockerfile | 2 +- parse_db_url.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 32a8a24..0dab3f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh USER root 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"] diff --git a/parse_db_url.sh b/parse_db_url.sh index 3836d4c..c0d6fab 100644 --- a/parse_db_url.sh +++ b/parse_db_url.sh @@ -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__NAME=$(echo ${DATABASE_URL} | sed -r "s|.*:([0-9]+)/([^?]+).*|\2|") +exec /usr/local/bin/gitea web -port $PORT