Photon dose produced by a high-intensity laser on a solid target