gitea源码

docker-entrypoint.sh 500B

123456789101112131415161718
  1. #!/bin/sh
  2. # Protect against buggy runc in docker <20.10.6 causing problems in with Alpine >= 3.14
  3. if [ ! -x /bin/sh ]; then
  4. echo "Executable test for /bin/sh failed. Your Docker version is too old to run Alpine 3.14+ and Gitea. You must upgrade Docker.";
  5. exit 1;
  6. fi
  7. if [ -x /usr/local/bin/docker-setup.sh ]; then
  8. /usr/local/bin/docker-setup.sh || { echo 'docker setup failed' ; exit 1; }
  9. fi
  10. if [ $# -gt 0 ]; then
  11. exec "$@"
  12. else
  13. exec /usr/local/bin/gitea -c ${GITEA_APP_INI} web
  14. fi