mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-29 16:54:30 +00:00
fix(sandbox): pass docker.env into sandbox container
This commit is contained in:
committed by
George Pickett
parent
40aff672c1
commit
92567765e6
@@ -155,6 +155,10 @@ export function buildSandboxCreateArgs(params: {
|
||||
if (params.cfg.user) {
|
||||
args.push("--user", params.cfg.user);
|
||||
}
|
||||
for (const [key, value] of Object.entries(params.cfg.env ?? {})) {
|
||||
if (!key.trim()) continue;
|
||||
args.push("--env", key + "=" + value);
|
||||
}
|
||||
for (const cap of params.cfg.capDrop) {
|
||||
args.push("--cap-drop", cap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user