You want an enclosure that is sized for the snake. A hatchling ball python might get very stressed from being in a large enclosure meant for an adult. Since they are so small they are very vulnerable to predators. Keeping the cage size small makes them feel safe which in turn leads them to eat on a regular basis.
Many of us use tubs. 6qt for a hatchling up to 250g or so, 15qt for juveniles up to 600g, 32qt for up to 2,000g, and 41qt for 2,000+.
The bigger the enclosure, the more air you need to heat and keep humidity. Ball pythons are terrestrial snakes, meaning they spend most of their time on the ground, so height is not really crucial. I wouldn't exceed 12" because all the extra space is never going to be used by the snake, but you still have to regulate the temperature.
If you need to use a glass tank, start with a 10 gallon and then increase the size after it is about a year old.