fix
This commit is contained in:
parent
3d6bc5d4cf
commit
45411ad92b
@ -5,6 +5,7 @@ ADD data /var/lib/gitea
|
|||||||
ADD localtime /etc/localtime
|
ADD localtime /etc/localtime
|
||||||
ADD timezone /etc/timezone
|
ADD timezone /etc/timezone
|
||||||
COPY --chown=root:root run.sh /usr/local/bin/
|
COPY --chown=root:root run.sh /usr/local/bin/
|
||||||
|
ADD conf /var/lib/gitea/custom/
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN chmod 755 /usr/local/bin/run.sh
|
RUN chmod 755 /usr/local/bin/run.sh
|
||||||
|
0
conf/.gitkeep
Normal file
0
conf/.gitkeep
Normal file
1
run.sh
1
run.sh
@ -3,6 +3,5 @@ export GITEA__database__HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//'
|
|||||||
export GITEA__database__NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
|
export GITEA__database__NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
|
||||||
export GITEA__database__USER=`echo $DATABASE_URL | grep -o "//[a-z]*:" | grep -o "[a-z]*"`
|
export GITEA__database__USER=`echo $DATABASE_URL | grep -o "//[a-z]*:" | grep -o "[a-z]*"`
|
||||||
export GITEA__database__PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"`
|
export GITEA__database__PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"`
|
||||||
mkdir /var/lib/gitea/custom/conf
|
|
||||||
echo "HTTP_PORT = $PORT;" > /var/lib/gitea/custom/conf/app.ini
|
echo "HTTP_PORT = $PORT;" > /var/lib/gitea/custom/conf/app.ini
|
||||||
/usr/local/bin/docker-entrypoint.sh
|
/usr/local/bin/docker-entrypoint.sh
|
Loading…
Reference in New Issue
Block a user