Married to a non-resident alien. Spouse will be present in the US for only ~30 days as a dependent

I'm currently on an F1 STEM OPT extension and my tax status has recently changed to 'resident alien' due to my extended stay in the US for over five years. To be more specific, I filed 1040 instead of a 1040-NR for the first time in 2022 tax year.

 

In the beginning of 2023, I got married to an Indian national who has visited the US for approximately three months this year on a B1/B2 visa. She will be joining me as a dependent on an F2 visa in November.

Are we eligible to file a joint tax return for the year 2023?

 

Additionally, my spouse doesn't have any income from India, but she does receive rent from a flat. If filing jointly is an option, how should we go about including the rental income in our tax return?