Last year I had cherry tomatoes in a large pot on the patio. I put it in the back to keep it away from the many clever herbivores that visit my front yard. The plant did well, grew like crazy and had lots of fruit.
Somehow my small dogs (I thought they were carnivores) developed a taste for tomatoes. They picked and ate them all as soon as they were ripe.
Use as large a pot as practical, a good quality potting mix, put a tomato cage in at the same time you plant, and fertilize regularly. Look for a short-season variety if possible. They grow slowly until the soil warms up.
Enjoy the harvest, or share it with your friends. And pets.