Short answer: Change (or clean) the switch for the driver's door.
Long answer: The dome light gets two signals from the driver's door.
One is shared with all the other door(s) (the light turns off
immediately when those door(s) close), the other activates the delay
circuit. If it doesn't get this ground signal, it turns off
immediately. Either that or the delay circuit inside your light is bad.