chore: 加入 Docker 8.5 Dockerfile 並恢復 deploy.yaml 原始版本
All checks were successful
Star-Cloud-Deploy-System / deploy-demo (push) Successful in 1m22s
Star-Cloud-Deploy-System / deploy-production (push) Has been skipped

- 加入 docker/8.5 目錄(從 Laravel Sail 8.4 複製)
- 恢復 deploy.yaml 到原始版本
This commit is contained in:
2026-01-13 11:04:58 +08:00
parent 649cbaab02
commit 88c3678a4d
5 changed files with 124 additions and 26 deletions

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
if [ "$SUPERVISOR_PHP_USER" != "root" ] && [ "$SUPERVISOR_PHP_USER" != "sail" ]; then
echo "You should set SUPERVISOR_PHP_USER to either 'sail' or 'root'."
exit 1
fi
if [ ! -z "$WWWUSER" ]; then
usermod -u $WWWUSER sail
fi
if [ ! -d /.composer ]; then
mkdir /.composer
fi
chmod -R ugo+rw /.composer
if [ $# -gt 0 ]; then
if [ "$SUPERVISOR_PHP_USER" = "root" ]; then
exec "$@"
else
exec gosu $WWWUSER "$@"
fi
else
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
fi