There is an old adage that you need to plant fig trees so the roots can grow under a slab, a barn, a house, etc. It comes from the idea that since fig roots are shallow, they need the extra insulation from the sun. I have seen slab damage from ancient trees and we have one around here that actually separated the eave from the wall. Your tree will do a lot better in the ground, my opinion.