Test
This commit is contained in:
parent
4f3bde14e4
commit
0e7a4062c2
@ -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"]
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user