Attempt new entrypoint angle
This commit is contained in:
parent
0c025b7ebb
commit
16a07eac87
@ -1,5 +1,9 @@
|
||||
FROM gitea/gitea:1.11.3
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
COPY . ${WORKDIR}
|
||||
|
||||
EXPOSE 3000
|
||||
COPY sbin/* /sbin/
|
||||
|
||||
ENTRYPOINT ["/sbin/dokku-entrypoint.sh"]
|
||||
|
8
sbin/docker-entrypoint.sh
Normal file
8
sbin/docker-entrypoint.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f "/data/gitea/conf/app.ini" ]; then
|
||||
echo "=====> Running database migration"
|
||||
gitea migrate
|
||||
fi
|
||||
|
||||
/usr/bin/entrypoint "$@"
|
Reference in New Issue
Block a user