I'm a non-resident alien who got married last year, but hasn't received their green card yet. I am filing jointly with my wife. How can I make sure I file the right form?

Came to the US in 2014 with F-1 visa, currently on OPT under same visa. We were married before 12/31/2017 and I spent 365 days in the US (and in case it matters: have bought a house with my name on the deed). Spouse is US citizen.