There is basil, and then there are the flowering basil plants.
Flowering basil is heaven for pollinators. Bees cannot resist them.
The plants tend to be hardier as well, with standing a wider range of temperatures.
Blue Spice Basil (Ocimum americanum) grows well in pots (use a 3 gallon and up size), in potting mix that drains well.
Do not cut back the flowers, it will flower all summer.
The leaves are edible, and can be used as any other basil.