I know you've said you only have space for a 12" pot, but if you can find any way to accommodate a larger one, you've got a better chance of success. 30 centimeters would be closer to the size recommended for container-grown tomatoes. I've personally had some success with a 20 centimeter pot. Anything you can do to get closer to that 30 centimeter mark is going to give you a better chance of success.
When you buy your tomato plants or seeds, look for a dwarf variety. If you want the plant to look compact (more like a decorative plant), you should look for a dwarf determinate variety. If you don't mind a sprawling, viney plant that needs to be trellised, you can consider a dwarf indeterminate variety. This might work, for example, if this outdoor space is a balcony, and you could afix the tomato plant to the balcony railing as it grows.
Here in the US, many of the common dwarf determinate plants have names with the word 'patio' or 'balcony' right in them (Patio Dwarf, Patio Princess, Balcony, etc.). Stupice is another that is frequently recommended for pots. Sweet Baby Girl is a dwarf indeterminate cherry tomato that is also easy to find here. I'm not sure which, if any, of these are available where you live, but you should be able to find that information locally.