Top it at 4-6 nodes and flower early would be my suggestion.
But, for what reason - miniature plants ??
Don't expect much yield, a plant can only grow as big as the root system can support it and in a coffee can, that is one small area for a root system.
I wish you luck and congratulate you on your sense of adventure!
Cheers, Organoman.