Think of it like this:
A zombie invasion could only happen when viruses are developed enough to do such a thing, that would be in about 500 years or more.
By that time we will have colonized the moon, and life cannot exist without oxygen, so the virus would be put outside the oxygen dome things/homes. Therefore you need to get a rocket to the moon.