Jim Krause has a point here, gluing the track directly on the door would be better than nailing it.
I'm building a switching layout, the track is glued directly on 1 piece of kitchen shelf ( leftover from our kitchen improvement ).
I glued the kato flextrack using DAP Kwik Seal tub & tile...