Add generic container run command for npm start
This commit is contained in:
parent
09fabe3021
commit
105c20146c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue