Welcome to MFT!
Fishless cycle recipe is the same for any size tank...just have to be extra careful at the amount of ammonia that you put in, probably measure with a dropper and not a capful. The only time difference will depend on the conditions you cycle in, (temperature, did you seed?, amt of oxygen etc) otherwise it'll take the same amount of time.
Also...might I suggest you start with a bigger tank than a 2? If you're going to start with a betta, that works...but I think many people in the hobby will agree that they wish they had started with a larger tank (myself included!!)