Light has momentum given by $E = pc$, which is derived from $E^2 =(m_0c^2)^2+(pc)^2$, where $m_0$ is set to zero. However I thought in this equation $p$ is defined as $p=\gamma m_0v$, which means it would also be zero if there was no rest mass. It seems like $E=pc$ is a postulate that happens to be true but isn't backed up by theory. Is there a more rigorous derivation of light's momentum?
Edited out $\gamma$