If he is treating you like that he probably is everybody else too, just in different ways. Take the high road and do your job.
Performing well for what you are being paid to do adds value; getting into a pissing contest removes value.
Other than pissing you off, what is this guy to you? Noting compared to your friends and family.
My rule is: "If you don't F___ me, feed me or pay my taxes then you are not the one I would miss the most".