#!/bin/bash # 确保脚本以非 root 用户运行时能够操作 /data 目录 mkdir -p /data chown -R node:node /data # 其他初始化操作 # ... # 启动主进程 exec "$@"