I messed up and grew to full term in a one gallon container. It got about 24" tall and 3 plants produced about 3 ounces dry.
That being said, I now go from clone rock wool, to a one gallon. Then about a week before I change to 12/12 I transplant into a 5 gallon. Waiting a week allows the plant time to acclamate before changing to flowering.
With this method I produced close to a pound with 3 plants, in a tent, with LED lights.
/my2¢