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