Ants hate fresh coffee grounds, but figs love them (actually they carry them to the queen, she partakes and dies, and they do to). Try that, and also, put a line of chalk around the top of your container. Ants won't cross that, or chalk up the trunk. The fig won't care, but ants won't even think about going up the trunk. Chalk is cheap.
Suzi