fix: 沙箱内 HOME=/home

This commit is contained in:
ymq 2026-08-13 17:59:37 +08:00
parent edaf1b4ad2
commit 29a4a5e0ef

View File

@ -243,6 +243,7 @@ def _build_bwrap_cmd(deploy_dir: str, command: str, workdir: str = "", network:
"--dev", "/dev",
"--tmpfs", "/tmp",
"--bind", deploy_dir, "/home",
"--setenv", "HOME", "/home",
]
if network == "isolated":
parts.insert(1, "--unshare-net")