Files
star-cloud/docker/8.5/start-container
sky121113 88c3678a4d
All checks were successful
Star-Cloud-Deploy-System / deploy-demo (push) Successful in 1m22s
Star-Cloud-Deploy-System / deploy-production (push) Has been skipped
chore: 加入 Docker 8.5 Dockerfile 並恢復 deploy.yaml 原始版本
- 加入 docker/8.5 目錄(從 Laravel Sail 8.4 複製)
- 恢復 deploy.yaml 到原始版本
2026-01-13 11:04:58 +08:00

27 lines
558 B
Bash

#!/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