One of the downsides of unlimited cantrips.
How long does it take to burn through a door, now though is the question. Wood is flammable, sure but a dungeon door is not paper so I'd rule a heavy dungeon type door should be flame resistant at the very least- firebolt is not like a welding torch...