Attempt new entrypoint angle

This commit is contained in:
Luke Murphy 2020-03-15 12:41:24 +01:00
parent 0c025b7ebb
commit 16a07eac87
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,9 @@
FROM gitea/gitea:1.11.3
EXPOSE 3000
COPY . ${WORKDIR}
EXPOSE 3000
COPY sbin/* /sbin/
ENTRYPOINT ["/sbin/dokku-entrypoint.sh"]

View 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 "$@"