Add generic container run command for npm start

This commit is contained in:
Seth Troisi 2025-04-24 01:03:11 +00:00
parent 09fabe3021
commit 105c20146c
1 changed files with 6 additions and 2 deletions

View File

@ -57,5 +57,9 @@ fi
node_args+=("$CLI_PATH" "$@")
# run gemini-code in sandbox container
if [[ "$CMD" == "podman" ]]; then
# use empty --authfile to skip unnecessary auth refresh overhead
$CMD run "${run_args[@]}" --init --authfile <(echo '{}') --workdir "$WORKDIR" "$IMAGE" node "${node_args[@]}"
else
$CMD run "${run_args[@]}" --init --workdir "$WORKDIR" "$IMAGE" node "${node_args[@]}"
fi