Jenia;
Practicality enters into this calculation. While the fig tree does not really care about a deep or shallow choice, it does care about the availability of water and nutrient, stability and root temperature. YOU care about the number of trees you can get in a limited space (if you are a real fig nut, that is.)
Last first: A deep container will hold the same amount of soil, water and nutrient in less floor space than will a shallow one.
Second; The deep container, holding more of everything, will last longer between waterings, it will keep roots cooler and permits them to go deeper. If your potting mix is not ideally drained there is a better chance that there will be a "comfort zone" at some point in the vertical measure of your pot than in a shallow one.
Stability can be a problem, but if your tree is not overly large it takes a very hard wind to tip a pot. Since most are on patios, or sheltered in some way this does not create much problem. I've had them tip over and just set them upright again. This generally happens when they are a bit dry to begin with.
Finally, big, shallow pots are hard to come by. Half-barrels, cattle feed tubs, five gallon buckets and commercial containers of many kinds can be had cheaply when one is not satisfied with paying $50 for a big flower pot. A favorite orange cattle feed tub, l7'' deep and 22'' across cost $7 at a junk shop. Those I get with feed are black, l9'' deep and 20'' across, while tubs 17'' deep and 19 across cost me $2 each at a yard sale (I got FIVE of them!)
The giant flower pots that I get at Sam's clearance sales in the late fall hold no more than the smallest of these tubs, they just look prettier on the patio and cost at least $12 each. They take up just as much room in the garage as do the biggest of the cattle feed tubs.
Happy Planting
Ox