A cockpit actually needs two doors, like they have in banks.
What about that shutter they used to have on those old prison doors where they used to put the meals through - no need to open the door and the inmates (sorry flightdeck crew) could still get fed??