All kinds of tasty fruit can be grown in containers in small spaces, from dwarf citrus to cherries, apples, pomegranates, ...
So long as the planter you choose meets a few exacting fig standards: it needs to be at least 5 gallons ... your home is pot ...